hallgren
121afca05a
Haskell binding: free memory pool to avoid space leak when readPGF fails
2014-05-13 14:07:36 +00:00
kr.angelov
41c8749b5c
fix the literals API in Java for strings with non-latin characters
2014-05-08 14:56:46 +00:00
kr.angelov
58d0cdc943
fix memory leak in the Haskell binding
2014-05-08 08:41:58 +00:00
hallgren
70b192594e
pgf-shell.hs: fix compilation problem with GHC 7.4
2014-05-07 17:06:34 +00:00
hallgren
04e7bdb6fe
Two improvements in the pgf-shell example
...
1. Like pgf-translate, it now shows one result at a time, press Enter to get
more results.
2. You can load a new grammar with the command 'i <path-to-pgf>'
2014-05-07 16:37:28 +00:00
kr.angelov
d278965095
an initial Java/C API for predicting literals. Still not utilized
2014-04-25 08:53:18 +00:00
kr.angelov
b70cea2673
bugfix in the handling of BIND in the C runtime
2014-04-22 13:53:18 +00:00
kr.angelov
b0b27a1b32
now word completion from Java works. It could be made better
2014-04-17 11:00:27 +00:00
kr.angelov
f72fe45c32
forgoten Completer.java
2014-04-11 07:52:10 +00:00
kr.angelov
b82f9a5035
expose Java API for word completion
2014-04-11 07:50:22 +00:00
kr.angelov
65b4ba2459
change the JVM version to 1.6 in JNI_OnLoad
2014-04-11 07:15:27 +00:00
kr.angelov
dbc8a6f579
bugfix in the Java binding
2014-04-10 16:43:40 +00:00
kr.angelov
1ca09448f9
now fully functional Java API for custom literals
2014-04-10 14:14:31 +00:00
kr.angelov
348c9c4233
bugfix in the C runtime
2014-04-10 07:42:49 +00:00
kr.angelov
d9f4c1598c
a quick hack to enable the NERC from bindings. This should be made available from the API but for now I just hacked the C runtime
2014-04-10 07:27:07 +00:00
hallgren
50ea3d265c
Change the type of PGF.Lexing.bindTok to [String] -> [String]
...
The old type was [String] -> String. This function was only used
in GF.Text.Lexing.stringOp, which now uses (unwords . bindTok) instead,
with no change in behaviour.
2014-04-09 17:39:21 +00:00
hallgren
677d849840
Unlexers: move capitalization of first word from GF.Text.Lexing to PGF.Lexing
...
The capitalization of the first word was done in GF.Text.Lexing.stringOp,
but is now done in the functions unlexText and unlexMixed in PGF.Lexing.
These functions are only used in stringOp and in PGFService (where the change
is needed), so the subtle change in behaviour should not cause any bugs.
2014-04-09 17:26:23 +00:00
hallgren
04a6260eea
PGF Service: a bit more clever lexer=text
...
Only change the first word to lowercase if the original input is not found in
the grammar's morphology. This allows parsing of sentenses starting with "I" in
English, nouns in German and proper names in other languages, but it can make
the wrong choice for multi-words.
2014-04-09 14:13:18 +00:00
hallgren
9cac98a356
Move basic lexing functions from GF.Text.Lexing to the new module PGF.Lexing
...
They are thus part of the PGF Run-Time Library, making it possible to add
lexing functionality in PGF service in a natural way.
2014-04-08 14:07:49 +00:00
kr.angelov
a90756aeda
added preliminary API for custom literals from Java. Not functional yet
2014-04-08 13:54:49 +00:00
kr.angelov
f99d3033aa
bugfix in the C runtime that shows up with only some grammars
2014-04-08 12:41:41 +00:00
kr.angelov
e3d49bea01
Expr and ExprProb are now serializable objects
2014-04-07 12:52:51 +00:00
kr.angelov
bd892b8a1d
fix the haskell binding to handle parse errors
2014-04-04 11:46:40 +00:00
kr.angelov
b3ba3d3c1c
initial binding to Prolog for the C runtime
2014-04-02 10:03:19 +00:00
kr.angelov
911ae42296
small fixes in the C runtime
2014-03-25 13:57:57 +00:00
kr.angelov
d816c34986
added hasLinearization method in the Python binding
2014-03-20 14:48:47 +00:00
kr.angelov
eb1aa24896
fix in the Python binding which was forgoten after a change in the C runtime
2014-03-20 14:48:02 +00:00
kr.angelov
a1446b87fa
whitespace cleanup in the parser
2014-03-18 10:19:35 +00:00
kr.angelov
ae1512c926
compute the right word probability
2014-03-12 15:36:40 +00:00
hallgren
f092e7fe5b
haskell-bind: comment out superfluous imports
2014-03-12 13:21:47 +00:00
kr.angelov
ebb61fbf1c
ensure that negative probabilities are always avoided
2014-03-12 13:11:23 +00:00
kr.angelov
2132eb6bed
added Java API to the simple word completion
2014-03-07 21:29:26 +00:00
kr.angelov
319308007c
fix in the Java binding after the implementation for pre
2014-03-07 21:28:40 +00:00
kr.angelov
ba28cfd80e
added pgf_lookup_word_prefix which makes it possible to do simple word prediction
2014-03-07 21:24:20 +00:00
kr.angelov
6cb693bdf5
bugfix in pgf-translate
2014-03-07 09:35:57 +00:00
hallgren
052ead6797
C run-time: protect from Windows specific #includes with #ifdef __MINGW32__
2014-03-06 13:42:27 +00:00
kr.angelov
4f9afb9343
implementation for pre in the C runtime
2014-03-05 10:17:42 +00:00
kr.angelov
cbe17732a6
use pgf_linearize instead of pgf_lzr_linearize_simple in pgf-translate.c
2014-03-04 10:30:23 +00:00
kr.angelov
2e1dd543e9
memory leak in parseval.c
2014-03-04 10:29:18 +00:00
kr.angelov
c197de7fbd
rename pgf_lzr_linearize_table to pgf_lzr_get_table
2014-03-04 10:13:23 +00:00
kr.angelov
ddf36bcd62
more in src/runtime/java/INSTALL
2014-02-27 21:21:19 +00:00
kr.angelov
60bfacf7c2
another fix for building the Java binding
2014-02-27 21:20:19 +00:00
kr.angelov
aeeabe3f0e
added file with instructions for compiling the Java binding
2014-02-27 20:20:59 +00:00
kr.angelov
994d936ce9
instructions for compiling the C runtime on Windows
2014-02-27 20:04:30 +00:00
kr.angelov
2eaf51f15a
changes in Makefile.am to make it easier to compile the C runtime on Windows
2014-02-27 19:37:10 +00:00
kr.angelov
2238d1e462
include malloc.h in a few places to avoid warnings on Windows
2014-02-27 19:34:14 +00:00
kr.angelov
b87104aa89
update the Eclipse project for jpgf with settings needed for Windows
2014-02-27 19:28:25 +00:00
hallgren
c9af5d11c0
Restore compatibility with GHC 7.0
2014-02-10 21:44:34 +00:00
kr.angelov
44a764cd2f
proper error checking in the C runtime
2014-02-10 14:07:17 +00:00
hallgren
1bcb2d06e3
haskell-bind: fix broken pgf-shell
...
The type CId was replaced with String, so can't use show and read anymore.
2014-02-10 12:59:31 +00:00