Krasimir Angelov
b7b7a7c91c
the embedded grammars now work with both the pure Haskell and the Haskell binding API
2017-08-29 18:44:50 +02:00
Krasimir Angelov
20b72f477a
added bracketedLinearize in the Haskell binding
2017-08-29 11:58:12 +02:00
Krasimir Angelov
d4026a64f4
tabularLinearize in the Haskell binding
2017-08-28 15:09:34 +02:00
krasimir
ca891c912b
a binding to the sentence lookup from Haskell
2017-05-12 09:32:25 +00:00
krasimir
94f41cc63d
safer memory management in the Haskell binding
2017-02-10 17:10:37 +00:00
krasimir
0e49c28e5b
API for computing the Haskell binding
2017-01-26 18:41:07 +00:00
krasimir
1cea621216
use throwIO instead of throw in a few placed
2017-01-26 18:40:36 +00:00
krasimir
af1a581f40
type checking API in the Haskell binding
2017-01-26 14:09:07 +00:00
krasimir
24671a612c
a better implementation for PGF2.categories
2017-01-26 13:37:12 +00:00
krasimir
3467a54965
bring the Haskell binding a bit closer to the pure Haskell API
2017-01-26 12:48:22 +00:00
krasimir
17163ae881
copy the types for BracketedString from the Haskell runtime to the Haskell bindings
2017-01-26 10:31:43 +00:00
krasimir
6af632dd18
added mkMeta and unMeta in the Haskell binding
2017-01-26 10:17:02 +00:00
krasimir
be43d5dfdc
added mkAbs and unAbs in the Haskell binding
2017-01-26 10:04:42 +00:00
krasimir
a06e0b6b6f
more startCat to the Types section in the Haddock documentation for the Haskell binding
2017-01-26 06:41:27 +00:00
krasimir
14b32a115c
add unStr,unInt and unFloat in the Haskell binding
2017-01-26 06:40:13 +00:00
krasimir
db0f8b0dce
improve the documentation for PGF2
2017-01-25 20:30:54 +00:00
krasimir
6de9636ff2
add functionsByCat in the Haskell binding
2017-01-25 10:44:08 +00:00
krasimir
8d3464dfb0
bugfix in the Haskell binding
2017-01-25 10:37:34 +00:00
krasimir
ed1e60f633
fix in the Haskell binding: functionType should throw error if the function is not defined
2016-05-30 17:15:09 +00:00
krasimir
86c5423275
the Literals API in Haskell no longer offers the sentence as an argument to the callbacks. It is just as easy to save the sentence in a closure and by doing that we save the repeated round about from C to Haskell strings
2016-05-11 11:10:22 +00:00
krasimir
9abc6aadde
many of the uses of peekCString and withCString in the Haskell binding were incorrect since they encode the string in the system locale while the C runtime is always using UTF8
2016-05-11 07:11:45 +00:00
krasimir
403e080273
fix the offset for oracles in Haskell
2016-05-10 19:41:44 +00:00
krasimir
80a96b3a85
an API for oracles in the GF parser
2016-05-10 17:11:39 +00:00
krasimir
bef9d8c5fc
added a primitive full-text search index in libsg. This can be use for finding an abstract tree whose linearization matches given keywords
2015-12-20 14:04:52 +00:00
krasimir
9f9b23d0dd
added mkInt and mkFloat in the Haskell binding to make it easy to create literal expressions
2015-11-19 13:18:19 +00:00
krasimir
73b41687c8
added the minimal Haskell API for storing expressions/triples in the semantic graph
2015-09-02 07:12:36 +00:00
hallgren
330d42296c
PGF2: export BindType(..) and two new functions: showType & categories
...
showType :: Type -> String
categories :: PGF -> [Cat]
But both are implemented as quick hacks: categories is implemented by listing
all functions and taking the target categories from their types. showType uses
ppType copied & modified from PGF.Type, and needs a ppExpr, which is currently
implemented by wrapping showExpr...
TODO: need something correpsonding to PGF.categoryContext.
2015-08-20 15:55:24 +00:00
hallgren
8d6e61a8df
gf -cshell: preliminary support for the C run-time system in the GF shell
...
Some C run-time functionality is now available in the GF shell, by starting
GF with 'gf -cshell' or 'gf -crun'. Only limited functionality is available
when running the shell in these modes:
- You can only import .pgf files, not source files.
- The -retain flag can not be used and the commands that require it to work
are not available.
- Only 18 of the 40 commands available in the usual shell have been
implemented. The 'linearize' and 'parse' commands are the only ones
that call the C run-time system, and they support only a limited set of
options and flags. Use the 'help' commmands for details.
- A new command 'generate_all', that calls PGF2.generateAll, has been added.
Unfortuntaly, using it causes 'segmentation fault'.
This is implemented by adding two new modules: GF.Command.Commands2 and
GF.Interactive2. They are copied and modified versions of GF.Command.Commands
and GF.Interactive, respectively. Code for unimplemented commands and other
code that has not been adapted to the C run-time system has been left in
place, but commented out, pending further work.
2015-08-10 14:12:51 +00:00
krasimir
aa6b6d3155
fixed missing do in the Haskell binding
2015-07-12 15:37:45 +00:00
krasimir
b3680b6025
merge the states for reasoning and evaluation into a single structure
2015-07-03 11:53:52 +00:00
krasimir
22773909bf
add function 'functions' in the Haskell binding to the C runtime
2015-06-30 20:42:19 +00:00
krasimir
616a24cba4
the NERC in C is now fully up-to-date with the other NERCs. In addition the NERC in Haskell and Java now refuses to recognize names that match words in the lexicon. The latest is useful for German
2015-05-19 07:26:56 +00:00
krasimir
3649412ce2
use a temporary pool for linearizeAll in Haskell too
2015-04-27 19:39:16 +00:00
krasimir
fc4b39d65f
make linearizeAll in the Haskell binding lazy
2015-04-27 16:28:45 +00:00
krasimir
86e16d9e3d
added linearizeAll in the Haskell bindings
2015-04-17 12:33:22 +00:00
hallgren
99f87c30d0
haskell-bind: add bindings to graphviz rendering functions for abstract&parse trees
2015-03-19 14:14:30 +00:00
krasimir
39bbe68adf
fix the missmatch between Int and CInt in the Haskell binding to the word alignment API. This was causing problems on 64-bit machines
2015-02-18 17:05:35 +00:00
krasimir
f3797bb313
fix the callback for unknown words as well
2015-02-18 16:47:33 +00:00
krasimir
a97dee067a
fix in the callback for names in the Haskell binding
2015-02-18 16:41:13 +00:00
kr.angelov
68a2f09590
added hasLinearization in the Haskell binding
2015-01-30 13:05:57 +00:00
hallgren
6b55ad88d4
PGF2: fixes for named entity callback function
2015-01-21 13:54:48 +00:00
hallgren
ffe1f74584
PGF2 & PGFService: enable callbacks for named entities and chunks in the c-parse & c-translate web requests
2015-01-21 10:41:12 +00:00
kr.angelov
790738c82b
fix conflicts
2015-01-21 08:35:20 +00:00
kr.angelov
79f8ab695c
added functionType in the Haskell API to the C runtime
2015-01-20 14:45:02 +00:00
hallgren
3f3df9a719
PGF2 & PGFService: work in progress on callbacks for nerc & chunks
2015-01-20 14:57:52 +00:00
hallgren
1fa59f7554
PGF2: introduced some type synonyms to make type signature more readable
2015-01-20 12:57:33 +00:00
kr.angelov
3bd40dbab6
API for word alignment in the C runtime and in the Haskell binding
2014-12-29 10:59:20 +00:00
kr.angelov
13f4af4910
bugfix and tiny optimization for callbacks from Haskell
2014-12-19 10:14:41 +00:00
kr.angelov
856683f79f
haddock comments for parseWithHeuristics
2014-12-19 09:05:51 +00:00
kr.angelov
f44f9a1b00
added mkStr to the Haskell binding
2014-12-19 08:58:02 +00:00