Skip to content

Commit

Permalink
Fix URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
TinoDidriksen committed Mar 4, 2025
1 parent e0af26f commit c155773
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 28 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
/CMakeCache.txt
/CMakeFiles
Makefile
/build
/src/cg-comp
/src/cg-conv
/src/cg-mwesplit
Expand Down
15 changes: 5 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
[![Build Status](https://travis-ci.org/TinoDidriksen/cg3.svg?branch=master)](https://travis-ci.org/TinoDidriksen/cg3)

See instead:
- https://visl.sdu.dk/constraint_grammar.html
- https://visl.sdu.dk/cg3.html
- https://visl.sdu.dk/cg3/chunked/
- https://edu.visl.dk/constraint_grammar.html
- https://edu.visl.dk/cg3.html
- https://edu.visl.dk/cg3/chunked/
- manual/
- http://groups.google.com/group/constraint-grammar
- https://groups.google.com/group/constraint-grammar

Other links:
- https://visl.sdu.dk/svn/visl/tools/vislcg3/trunk/
- https://en.wikipedia.org/wiki/Constraint_Grammar
- http://wiki.apertium.org/wiki/Constraint_Grammar
- http://kevindonnelly.org.uk/2010/05/constraint-grammar-tutorial/
- http://openhub.net/p/cg3
- https://wiki.apertium.org/wiki/Constraint_Grammar
4 changes: 2 additions & 2 deletions cg3.magic
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
# Textual form of a Constraint Grammar v3 file
# Extensions: .cg3 .rlx
# by Tino Didriksen <[email protected]>
# https://visl.sdu.dk/cg3.html
# https://edu.visl.dk/cg3.html
0 search/1/cb DELIMITERS\ = CG-3 Grammar, text
0 search/1/cb DELIMITERS= CG-3 Grammar, text

# CG-3 compiled grammar
# Compiled form of a Constraint Grammar v3 file
# Extensions: .cg3b .rlx.bin .bin
# by Tino Didriksen <[email protected]>
# https://visl.sdu.dk/cg3.html
# https://edu.visl.dk/cg3.html
0 string CG3B CG-3 Grammar, compiled,
>4 ubelong x revision %u
6 changes: 3 additions & 3 deletions emacs/cg.el
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
;; Author: Kevin Brubeck Unhammer <[email protected]>
;; Version: 0.4.0
;; Package-Requires: ((emacs "26.1"))
;; Url: https://visl.sdu.dk/constraint_grammar.html
;; Url: https://edu.visl.dk/constraint_grammar.html
;; Keywords: languages

;; This file is not part of GNU Emacs.
Expand Down Expand Up @@ -57,7 +57,7 @@
;; - use something like prolog-clause-start to define M-a/e etc.
;; - indentation function (based on prolog again?)
;; - the rest of the keywords
;; - https://visl.sdu.dk/cg3/single/#regex-icase
;; - https://edu.visl.dk/cg3/single/#regex-icase
;; - keyword tab-completion
;; - `font-lock-syntactic-keywords' is obsolete since 24.1
;; - show definition of set/list-at-point in modeline
Expand Down Expand Up @@ -213,7 +213,7 @@ Don't change without re-evaluating `cg-kw-re' (or all of cg.el)." )
"NOPARENT"
"DETACH")
"Rule flags used for highlighting.
from https://visl.sdu.dk/svn/visl/tools/vislcg3/trunk/src/Strings.cpp
from https://edu.visl.dk/svn/visl/tools/vislcg3/trunk/src/Strings.cpp
Don't change without re-evaluating the file.")
(defconst cg-kw-context-flags '("NOT"
"NEGATE"
Expand Down
2 changes: 1 addition & 1 deletion manual/man/cg-comp.1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ cg-comp \- This application is part of (
)
.PP
This tool is part of the CG-3
constraint grammar system: \fBhttps://visl.sdu.dk/cg3.html\fR.
constraint grammar system: \fBhttps://edu.visl.dk/cg3.html\fR.
.SH SYNOPSIS
.B cg-comp
grammar_file [input_file [output_file]]
Expand Down
4 changes: 2 additions & 2 deletions manual/man/cg-conv.1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ cg-conv \- This application is part of (
)
.PP
This tool is part of the CG-3
constraint grammar system: \fBhttps://visl.sdu.dk/cg3.html\fR.
constraint grammar system: \fBhttps://edu.visl.dk/cg3.html\fR.
.SH SYNOPSIS
.B cg-conv
[OPTIONS]
Expand Down Expand Up @@ -65,7 +65,7 @@ sets sub\-reading direction to LTR
.RS
.SH SEE ALSO
.I vislcg3\fR(1),
https://visl.sdu.dk/cg3/chunked/streamformats.html
https://edu.visl.dk/cg3/chunked/streamformats.html
.SH BUGS
Email to: Tino Didriksen <[email protected]>
.SH AUTHOR
Expand Down
2 changes: 1 addition & 1 deletion manual/man/cg-proc.1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ cg-proc \- This application is part of (
)
.PP
This tool is part of the CG-3
constraint grammar system: \fBhttps://visl.sdu.dk/cg3.html\fR.
constraint grammar system: \fBhttps://edu.visl.dk/cg3.html\fR.
.SH SYNOPSIS
.B cg-proc
[OPTIONS] grammar_file [input_file [output_file]]
Expand Down
2 changes: 1 addition & 1 deletion manual/man/cg3-autobin.pl.1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ cg-autobin.pl \- This application is part of (
)
.PP
This tool is part of the CG-3
constraint grammar system: \fBhttps://visl.sdu.dk/cg3.html\fR.
constraint grammar system: \fBhttps://edu.visl.dk/cg3.html\fR.
.SH SYNOPSIS
.B cg-autobin.pl
[OPTIONS]
Expand Down
2 changes: 1 addition & 1 deletion manual/man/vislcg3.1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ vislcg3 \- This application is part of (
)
.PP
This tool is part of the CG-3
constraint grammar system: \fBhttps://visl.sdu.dk/cg3.html\fR.
constraint grammar system: \fBhttps://edu.visl.dk/cg3.html\fR.
.SH SYNOPSIS
.B vislcg3
[OPTIONS]
Expand Down
4 changes: 2 additions & 2 deletions scripts/profile-revisions.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ function profile_revision($rev) {
shell_exec('rm -rf '.$dir.' 2>&1 >/dev/null');

echo "Exporting revision $rev...\n";
shell_exec('svn export -r '.$rev.' --ignore-externals svn+ssh://beta.visl.sdu.dk/usr/local/svn/repos/visl/tools/vislcg3/trunk '.$dir.' >/dev/null 2>&1');
shell_exec('svn export -r '.$rev.' --ignore-externals svn+ssh://edu.visl.dk/usr/local/svn/repos/visl/tools/vislcg3/trunk '.$dir.' >/dev/null 2>&1');
chdir($dir);
shell_exec('svn export -r 10017 --ignore-externals svn+ssh://beta.visl.sdu.dk/usr/local/svn/repos/visl/trunk/parsers/dansk/etc/dancg.cg dancg >/dev/null 2>&1');
shell_exec('svn export -r 10017 --ignore-externals svn+ssh://edu.visl.dk/usr/local/svn/repos/visl/trunk/parsers/dansk/etc/dancg.cg dancg >/dev/null 2>&1');
echo "Compiling...\n";

if (file_exists('./src/all_vislcg3.cpp')) {
Expand Down
8 changes: 4 additions & 4 deletions src/GrammarApplicator_matchSet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ namespace CG3 {
/**
* Tests whether one set is a subset of another set, specialized for TagSet.
*
* In the https://visl.sdu.dk/cg3_performance.html test data, this function is executed 1516098 times,
* In the https://edu.visl.dk/cg3_performance.html test data, this function is executed 1516098 times,
* of which 23222 (1.5%) return true.
*
* @param[in] a The tags from the set
Expand Down Expand Up @@ -222,7 +222,7 @@ uint32_t GrammarApplicator::doesRegexpMatchReading(const Reading& reading, const
/**
* Tests whether a given reading matches a given tag.
*
* In the https://visl.sdu.dk/cg3_performance.html test data, this function is executed 1058428 times,
* In the https://edu.visl.dk/cg3_performance.html test data, this function is executed 1058428 times,
* of which 827259 are treated as raw tags.
*
* @param[in] reading The reading to test
Expand Down Expand Up @@ -600,7 +600,7 @@ bool GrammarApplicator::doesSetMatchReading_trie(const Reading& reading, const S
/**
* Tests whether a given reading matches a given LIST set.
*
* In the https://visl.sdu.dk/cg3_performance.html test data, this function is executed 1073969 times.
* In the https://edu.visl.dk/cg3_performance.html test data, this function is executed 1073969 times.
*
* @param[in] reading The reading to test
* @param[in] set The hash of the set to test against
Expand Down Expand Up @@ -657,7 +657,7 @@ bool GrammarApplicator::doesSetMatchReading_tags(const Reading& reading, const S
/**
* Tests whether a given reading matches a given LIST or SET set.
*
* In the https://visl.sdu.dk/cg3_performance.html test data, this function is executed 5746792 times,
* In the https://edu.visl.dk/cg3_performance.html test data, this function is executed 5746792 times,
* of which only 1700292 make it past the first index check.
*
* @param[in] reading The reading to test
Expand Down
2 changes: 1 addition & 1 deletion src/GrammarApplicator_runRules.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,7 @@ bool GrammarApplicator::runSingleRule(SingleWindow& current, const Rule& rule, R
* Only when no further changes are caused at a level does it progress to next level.
*
* The loops in this function are increasingly explosive, despite efforts to contain them.
* In the https://visl.sdu.dk/cg3_performance.html test data, this function is called 1015 times.
* In the https://edu.visl.dk/cg3_performance.html test data, this function is called 1015 times.
* The first loop (rules) is executed 3101728 times.
* The second loop (cohorts) is executed 11087278 times.
* The third loop (finding readings) is executed 11738927 times; of these, 1164585 (10%) match the rule target.
Expand Down

0 comments on commit c155773

Please sign in to comment.