1
0
forked from GitHub/gf-core
Commit Graph

1936 Commits

Author SHA1 Message Date
Krasimir Angelov
b39f481316 check for zero epsilon or backref pointers 2022-10-04 12:04:18 +02:00
Krasimir Angelov
e2a7974853 partial support for epsilon rules 2022-10-04 11:44:22 +02:00
Krasimir Angelov
693ca7ffa5 Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic 2022-10-03 11:55:37 +02:00
Krasimir Angelov
2accfa57f1 bugfix: the viterbi prob. of a state is computable only after we know the chunks 2022-10-03 11:54:17 +02:00
Krasimir Angelov
0bc7e8ea2e reuse PgfParser::before instead of the new PgfParser::fetch_state 2022-10-03 11:51:34 +02:00
Krasimir Angelov
c15b5271a9 fix the printing of meta items 2022-10-03 11:48:40 +02:00
Krasimir Angelov
9f2cbe70fe fix the printer for the debug output after the last change 2022-10-03 11:47:36 +02:00
Krasimir Angelov
f05b0ff82a pgf_expr_prob is now compatible with the parse model 2022-09-30 15:56:07 +02:00
Krasimir Angelov
855fa7ebf3 use TextSpots for correct extraction of unknown words 2022-09-30 11:58:09 +02:00
Krasimir Angelov
6b63c2f779 faster expression extraction 2022-09-30 11:34:04 +02:00
Krasimir Angelov
106d963d39 fix the printing of ExprItem 2022-09-30 10:45:14 +02:00
Krasimir Angelov
74f4317b98 detect chunks with more than one words 2022-09-29 18:49:31 +02:00
Krasimir Angelov
cd280272f3 bottom up prediction and maximal chunks 2022-09-23 11:33:16 +02:00
Krasimir Angelov
f8cfed15b4 add PGF_INTERNAL_DECL 2022-09-21 11:26:19 +02:00
Krasimir Angelov
e600d5e623 PGF_INTERNAL_DECL -> PGF_INTERNAL 2022-09-21 11:24:30 +02:00
Krasimir Angelov
3e0cc91a02 first rudimentary version of a parser 2022-09-16 12:34:46 +02:00
Krasimir Angelov
173128bd46 Merge branch 'master' into majestic 2022-08-24 20:31:10 +02:00
Krasimir Angelov
dc8dce90a0 added a Setup script to compile without cabal-install 2022-08-24 14:00:22 +02:00
Krasimir Angelov
743c473526 linearization for chunks 2022-08-19 16:37:56 +02:00
Krasimir Angelov
a27e2dbbb4 fix a leak of stable pointers 2022-08-19 11:34:27 +02:00
Krasimir Angelov
6d81306320 Try to remove the upper version for base 2022-08-17 09:49:37 +02:00
krangelov
3acb7d2da4 silence harmless warnings 2022-08-12 10:54:43 +02:00
krangelov
08fb29e6b8 fix the reference counting for pgf.BIND 2022-08-12 10:51:56 +02:00
Krasimir Angelov
ada8ff8faa bugfix which makes lookupCohorts fast again 2022-07-30 18:22:58 +02:00
Krasimir Angelov
a42cec2107 support for BIND tokens in the Python bindings 2022-07-16 20:29:36 +02:00
Krasimir Angelov
eb41d2661f bugfix in readContext 2022-07-14 15:56:11 +02:00
Krasimir Angelov
9ded2096fd readExpr/readType/readContext can now identify local variables 2022-07-14 15:10:28 +02:00
Krasimir Angelov
bc47a01223 another try 2022-07-14 11:46:19 +02:00
Krasimir Angelov
4d3e414776 another try 2022-07-14 11:37:36 +02:00
Krasimir Angelov
833a86960b fix the binding after the API change 2022-07-14 11:25:00 +02:00
Krasimir Angelov
4d0f33e3c3 make it possible to replace the probabilities while reading a new .pgf 2022-07-14 11:04:45 +02:00
Krasimir Angelov
f1cad40394 lookupMorpho/lookupCohorts now report only lexical items 2022-07-12 14:02:08 +02:00
Krasimir Angelov
5b8212020f finished the implementation of lookupCohorts 2022-07-12 12:46:50 +02:00
Krasimir Angelov
e546c2a0ce added a simple implementation for priority queues. 2022-07-08 16:19:11 +02:00
Krasimir Angelov
acc6f85041 fix to show all prefixes in lookupCohorts 2022-07-07 19:29:26 +02:00
Krasimir Angelov
a66693770c started with lookupCohorts 2022-07-07 14:03:07 +02:00
Krasimir Angelov
c783da51a4 bugfix in lookupMorpho 2022-07-06 19:25:37 +02:00
Krasimir Angelov
c3c1cf2a64 on POSIX systems use mprotect to protect the data from accidental changes 2022-07-05 15:59:06 +02:00
Krasimir Angelov
73d4e326f7 consolidation of free blocks 2022-07-05 13:21:53 +02:00
Krasimir Angelov
96304a52d1 added checks to control compilation with emscripten 2022-07-04 14:26:04 +02:00
Krasimir Angelov
feb9b3373f fix the type cast, to avoid warnings on some platforms 2022-07-04 14:25:17 +02:00
Krasimir Angelov
1862ba5cec Define custom isdigit version. The expression parser now uses the custom isspace and isdigit 2022-07-04 14:24:06 +02:00
Krasimir Angelov
ae460e76b6 allow compilation with emscripten 2022-07-04 10:42:34 +02:00
Krasimir Angelov
69a2b8a448 second attempt to fix the compilation 2022-06-29 21:48:48 +02:00
Krasimir Angelov
46a9a8f07d fix the compilation on Windows and macOS 2022-06-29 21:40:51 +02:00
Krasimir Angelov
88477a8834 added mutex for single writer exclusion 2022-06-29 16:28:01 +02:00
Krasimir Angelov
edb9ff33c5 another fix for linearizeAll and undefined lins 2022-06-28 18:21:58 +02:00
Krasimir Angelov
42d01578ec added test for an unknown function at the top of an expression 2022-06-24 22:27:39 +02:00
Krasimir Angelov
635dc380a3 handle linref when the argument is an unknown function 2022-06-24 06:31:28 +02:00
Krasimir Angelov
663cca2d06 fix the resolution of linrefs 2022-06-23 14:52:47 +02:00