Commit Graph
100 Commits
Author SHA1 Message Date
krangelov 21044264fa forgot adding expr.cxx 2021-08-13 08:12:03 +02:00
krangelov 2a8d4232ce Fun -> Cat 2021-08-12 14:45:49 +02:00
krangelov 352dedc26f forgot releasing a stable pointer 2021-08-12 14:45:05 +02:00
krangelov 7e35db47a6 export PGFError 2021-08-12 14:41:50 +02:00
krangelov edba4fda32 test that we can handle loading failures 2021-08-12 14:23:20 +02:00
krangelov a8403d48fa the unmarshaller should not be disposed twice in case of error 2021-08-12 14:16:19 +02:00
krangelov 3578355bd0 fix computing the size of the mapped area 2021-08-12 14:04:35 +02:00
krangelov 39f38ed0e2 added startCat 2021-08-12 12:39:05 +02:00
krangelov 01db0224be API for constructing types 2021-08-12 12:16:11 +02:00
krangelov 16dfcb938c more of the abstract API copied from the old runtimes 2021-08-12 12:06:50 +02:00
krangelov 0ece508716 added categoryProb, functionProb, functionIsConstructor 2021-08-12 11:10:27 +02:00
krangelov 72993a178a Merge branch 'majestic' of https://github.com/GrammaticalFramework/gf-core into majestic 2021-08-12 10:42:24 +02:00
krangelov f2da618e5d implemented categoryContext 2021-08-12 10:42:02 +02:00
krangelov c97b736a5b fix the reading of expressions 2021-08-12 10:41:23 +02:00
krangelov 82ce76a2ce fix allocation to ensure that top is properly aligned from the beginning 2021-08-12 10:40:33 +02:00
krangelov d2aec60612 fix typos 2021-08-12 10:38:55 +02:00
krangelov c482d3466c added != operator removed function null() 2021-08-12 08:49:20 +02:00
krangelov 4abe7836e0 test case for functionType 2021-08-12 07:53:55 +02:00
krangelov 2c1700776e implemented readExpr & readType 2021-08-11 22:07:01 +02:00
krangelov a5008c2fe1 implemented functionType and marshalling for types and expressions 2021-08-10 15:07:41 +02:00
krangelov 7b5669a333 Merge branch 'majestic' of https://github.com/GrammaticalFramework/gf-core into majestic 2021-08-08 18:30:07 +02:00
krangelov 91f183ca6a move the C sources to the subfolder pgf again for backwards compatibility 2021-08-08 18:29:16 +02:00
Krasimir Angelov 0187be04ff Update memory_model.md 2021-08-08 16:50:16 +02:00
krangelov f70e1b8772 fix the DB_scope in pgf_read_ngf 2021-08-08 16:29:51 +02:00
krangelov 8d1cc22622 fix typo 2021-08-08 16:24:29 +02:00
krangelov e7bd7d00b3 remove the newly created .ngf on error. 2021-08-08 16:20:41 +02:00
krangelov f3e579bbb1 implement DB_scopes 2021-08-08 16:17:24 +02:00
krangelov 11b630adc1 Merge branch 'majestic' of https://github.com/GrammaticalFramework/gf-core into majestic 2021-08-08 16:12:00 +02:00
krangelov 1088b4ef38 implement grammar loading from Python 2021-08-08 16:11:23 +02:00
Krasimir Angelov db8843c8bf Update memory_model.md 2021-08-07 20:39:09 +02:00
Krasimir Angelov bfd839b7b0 Update README.md 2021-08-07 18:29:59 +02:00
Krasimir Angelov 78d6282da2 Create README.md 2021-08-07 18:29:31 +02:00
Krasimir Angelov cc8db24a46 Update memory_model.md 2021-08-07 10:36:34 +02:00
Krasimir Angelov 72c51f4bf9 Create memory_model.md 2021-08-07 09:44:50 +02:00
krangelov 3a7743afad added the expression type 2021-08-06 20:03:22 +02:00
krangelov 825e8447db make it possible to load several grammars in the same process and ensure reader-writer exclusion 2021-08-06 19:34:02 +02:00
krangelov 2d6bcd1953 a better API for loading PGF & NGF files 2021-08-06 16:50:21 +02:00
krangelov dc1644563f extend the abstract syntax API 2021-08-06 12:43:30 +02:00
krangelov 87f1e24384 started a testsuite 2021-08-05 20:45:08 +02:00
krangelov 36e87668e0 make sure that changes in the database are always flushed 2021-08-05 20:05:29 +02:00
krangelov 2d3aac5aa1 fixed white space 2021-08-05 19:30:50 +02:00
krangelov 217e0d8cc6 added function abstractName from the API 2021-08-05 19:30:05 +02:00
krangelov 75e19bbffa document the exception handling 2021-08-05 18:05:42 +02:00
krangelov cc4a215f83 fix the memory leak in case of exceptions 2021-08-05 17:58:04 +02:00
krangelov 7d85d3ca9a fix: when PGF loading forgot reading "functions per cat" 2021-08-05 17:13:11 +02:00
krangelov e298410e57 read_name -> read_text in literals 2021-08-05 17:06:05 +02:00
krangelov 5e320943c9 started on the Haskell binding 2021-08-05 17:01:49 +02:00
krangelov 54421492b2 fix the balancing to avoid segmentation faults 2021-08-05 16:28:50 +02:00
krangelov 84789c9fbf finished reading the abstract syntax 2021-08-05 12:37:12 +02:00
krangelov 17629e4821 strings are stored as length+text and NULL byte is not a terminator 2021-07-30 13:45:22 +02:00
Krasimir Angelov a8b3537184 Create DESIDERATA.md 2021-07-30 12:55:33 +02:00
krangelov db1871cf55 Merge branch 'c-runtime' into majestic 2021-07-30 12:11:19 +02:00
krangelov 4c6872615c remove RConcrete 2021-07-30 12:10:40 +02:00
krangelov 8f0a1b8fee started a new database-backed runtime from scratch 2021-07-30 12:08:28 +02:00
krangelov 155657709a Merge branch 'master' into c-runtime 2021-07-30 11:20:04 +02:00
krangelov 265f08d6ee added link to vis-network.min.js 2021-07-26 16:57:05 +02:00
krangelov e47042424e Merge branch 'master' of https://github.com/GrammaticalFramework/gf-core 2021-07-26 16:52:11 +02:00
krangelov ecf309a28e fix links to WordNet 2021-07-26 16:51:58 +02:00
krangelov af1360d37e allow parameter cat in the Web API for parsing 2021-05-27 11:45:31 +02:00
krangelov eeda03e9b0 added news 2021-05-05 15:04:15 +02:00
krangelov ba3e09cc38 Merge branch 'master' of https://github.com/GrammaticalFramework/gf-core 2021-02-26 14:59:18 +01:00
krangelov 8fbfc0b4a9 bracketedLinearize now reports the binding spots just like the Haskell binding 2021-02-26 14:58:31 +01:00
krangelov 655173932e fix type signature 2021-01-20 20:38:19 +01:00
krangelov 04f6f113f0 Merge branch 'master' of https://github.com/GrammaticalFramework/gf-core 2021-01-20 20:16:26 +01:00
krangelov bac619f025 fix gu_map_next 2021-01-20 20:15:40 +01:00
krangelov 37c63a0c22 Merge branch 'master' of https://github.com/GrammaticalFramework/gf-core 2020-11-17 10:27:07 +01:00
krangelov d4ccd2848c Take a step back and do bottom up prediction only when needed. This solves the problem that some sentences were impossible to parse. 2020-11-17 10:26:00 +01:00
krangelov f3a8658cc1 Merge branch 'master' of https://github.com/GrammaticalFramework/gf-core 2020-10-02 19:55:24 +02:00
krangelov bfb94d1e48 fix parsing with HOAS 2020-10-02 19:34:52 +02:00
krangelov 90fc1d750e remove the deprecated pgf_print_expr_tuple 2020-08-14 21:03:48 +02:00
krangelov 24beed9a95 Merge branch 'master' of https://github.com/GrammaticalFramework/gf-core 2020-08-14 20:56:20 +02:00
krangelov 23edeec5a9 added an API for cloning expressions/types/literals 2020-08-14 20:54:15 +02:00
krangelov 830dbe760d expose parseToChart via the Web API 2020-07-26 15:56:54 +02:00
krangelov d7965d81b4 parseToChart also returns the category 2020-07-26 15:56:21 +02:00
krangelov a2d7f1369c filter out empty brackets 2020-07-26 15:55:18 +02:00
krangelov 0cee82f715 the if is actually unnecessary 2020-07-22 16:55:21 +02:00
krangelov 7229033e42 bugfix in bracketedLinearize 2020-07-22 16:26:05 +02:00
krangelov 8bc4cc7187 added function for posting query strings. scales better than get. 2020-07-21 22:29:00 +02:00
krangelov 2b09e70b4a allow specifying content-type in ajax_http 2020-07-21 13:19:19 +02:00
krangelov 77a2630ed9 revert to using unconditional probabilities in the different lookup functions 2020-07-11 09:52:43 +02:00
krangelov 33818076ff drop the SG library completely. 2020-07-08 21:12:01 +02:00
krangelov 0a915199e8 allow literals in the C shell 2020-05-20 20:18:47 +02:00
krangelov 165c5a6d9d bugfix in parsing literals 2020-05-20 19:57:33 +02:00
krangelov 0ad1c352fe expose lookupCohorts in Python 2020-05-20 16:12:50 +02:00
krangelov 48d3973daa fix the uggly typo that broke the literals. 2020-05-20 10:15:53 +02:00
krangelov 9a1f982b14 split unknown words by spaces 2020-05-16 08:32:00 +02:00
krangelov e8653135d4 Merge branch 'master' of https://github.com/GrammaticalFramework/gf-core 2020-05-14 15:05:13 +02:00
krangelov 62bc78380e lookupCohorts now detects and reports unknown words. Also:
- added added two filtering functions: filterLongest and filterBest
 - updated the PGF service to work with the new API
2020-05-14 15:03:30 +02:00
Krasimir Angelov b962bcd178 Merge pull request #50 from jdahlin/patch-1
Expose PGF/Concr/Iter/Bracket
2020-04-02 09:14:53 +02:00
krangelov 57a1ea5b56 forgot the conversion of the annotation string to jstring 2020-04-01 16:26:03 +02:00
krangelov 762d83c1f0 switch off the debugger 2020-03-25 20:03:06 +01:00
krangelov 733fdac755 restore the sequence ordering after -optimize-pgf 2020-03-15 19:57:47 +01:00
krangelov 00e25d0ccb an API to access the names of all fields withing a category 2020-03-06 12:29:08 +01:00
krangelov 9806232532 fix the build after the change in the morphological API 2020-03-05 12:24:01 +01:00
krangelov 88f76ef671 lookup_morpho, lookup_cohorts and fullform_lexicon now report the usual conditional probability. This turns out to be more useful for part of speech tagging 2020-03-05 12:04:42 +01:00
krangelov f22bd70585 The APIs for callbacks and the bracketed strings now use a string for the analysis intead of an integer. This is now consistent with lookupMorpho and friends 2020-03-05 11:58:21 +01:00
krangelov 3133900125 another bug related to mattern matching on multiword expression 2020-02-18 15:07:47 +01:00
krangelov e15392e579 fix: pattern matching on strings should reconstruct the tokens after matching 2020-02-17 19:29:36 +01:00
krangelov 9604a6309c fix the compilation of case insensitive grammars 2020-02-17 12:40:14 +01:00
krangelov 98a18843da support command c-lookupCohorts 2020-02-13 14:51:03 +01:00