Krasimir Angelov
82039c22d3
added bracketed linearize
2022-12-17 10:21:43 +01:00
Krasimir Angelov
04a263d7d4
fix bracketed linearization in case of nonExist
2022-12-10 20:18:23 +01:00
Krasimir Angelov
a3111f3be7
fix after the introduction of name patterns
2022-12-10 20:17:10 +01:00
Krasimir Angelov
00227014b8
simpler but working name allocator
2022-12-10 18:43:26 +01:00
Krasimir Angelov
8f7e4c084c
an API to create unique function names
2022-12-05 08:11:43 +01:00
Krasimir Angelov
a6aa6c2a5a
constant time and space grammar embedding
2022-11-16 09:43:09 +01:00
Krasimir Angelov
045f708a76
use pgf_free_concr_revision instead of pgf_free_revision
2022-11-14 20:58:49 +01:00
Krasimir Angelov
3b77edb8d0
Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic
2022-11-12 19:46:22 +01:00
Krasimir Angelov
fd3c31b74d
fix space leak during the first transaction
2022-11-12 19:45:47 +01:00
Krasimir Angelov
9214f2a074
fix compilation with older GHC versions
2022-11-10 19:19:19 +01:00
Krasimir Angelov
5ca00ded84
added version constraints
2022-11-10 15:44:34 +01:00
Krasimir Angelov
fda1353148
add consistant version numbers
2022-11-10 15:33:51 +01:00
Krasimir Angelov
43934e04de
don't save the history in -run and -server modes to avoid space leaks
2022-11-04 22:53:44 +01:00
Krasimir Angelov
a88c412e87
"create lin/lincat" should be able to see funs & cats in the current transaction
2022-11-04 22:03:29 +01:00
Krasimir Angelov
58910975ad
fix compilation for Python < 3.10
2022-10-26 07:40:21 +02:00
Krasimir Angelov
d784e2584b
A lower-level transaction API and a transaction command in the shell
2022-10-24 10:44:40 +02:00
Krasimir Angelov
4b2e5d2f4c
guard for missing linearization
2022-10-24 10:42:11 +02:00
Krasimir Angelov
39ac59c2b9
bugfixes related to old pointers
2022-10-24 10:37:38 +02:00
Krasimir Angelov
d8aab2962c
check for lins without funs
2022-10-21 13:41:41 +02:00
Krasimir Angelov
7ef4fe7555
basic linearization API
2022-10-19 14:33:38 +02:00
Krasimir Angelov
073459ad56
bugfix
2022-10-10 15:17:54 +02:00
Inari Listenmaa
85038d0175
Merge pull request #149 from anka-213/ghc-9.2
...
Add support for ghc-9.2.4
2022-10-10 12:00:40 +02:00
Inari Listenmaa
6edd449d68
Merge pull request #147 from anka-213/extend-performance-issue
...
Improve performance with long extend-lists
2022-10-10 12:00:23 +02:00
Krasimir Angelov
be721f3415
PGF.embed can now augment existing modules
2022-10-08 17:21:36 +02:00
Krasimir Angelov
706b74a15b
bugfix: check for 0 before free_ref
2022-10-08 08:08:30 +02:00
Krasimir Angelov
35d6a12074
fix a space leak
2022-10-07 23:30:26 +02:00
Andreas Källberg
a58c6d49d4
Extract the previous optimization to its own function
2022-10-04 17:01:47 +02:00
Andreas Källberg
fef7b80d8e
Use a Set in isInherited to speed up long extend lists
...
Now the time is O(log(n)*m) instead of O(n*m) where n is the number of
items in the extend list
e.g.
abstract FromWordNet = WordNet [
a_couple_Card,
a_la_carte_Adv,
a_la_mode_Adv,
a_little_Card,
...
];
2022-10-04 17:01:47 +02:00
Andreas Källberg
03df25bb7a
Add support for ghc-9.2.4
2022-10-04 17:01:23 +02:00
Inari Listenmaa
3122590e35
Merge pull request #148 from anka-213/fix-ghc-7.10-build
...
Fix ghc-7.10 build
2022-10-04 16:59:53 +02:00
Andreas Källberg
0a16b76875
Only include transformers-compat for ghc < 8
...
Since that's the only place where it's needed
and we don't have to fight with versions elsewhere
2022-10-04 13:28:23 +02:00
Andreas Källberg
51b7117a3d
Restore build with ghc-7.10.3
2022-10-04 13:07:07 +02:00
Andreas Källberg
fef03e755b
Update some old unused code to support newer ghc
2022-10-04 13:07:07 +02:00
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
Aarne Ranta
223f92d4f6
using an unparsable variable name in the internal desugaring of table extension to avoid captures; captures with iterated table extensions might still be possible, which needs further analysis
2022-10-04 11:06:56 +02:00
aarneranta
83483b93ba
New construct: table update. Syntax t ** { cases }. Syntactic sugar for table {cases ; vvv => t \! vvv}.t
2022-10-03 17:04:29 +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