krasimir
694cdffa72
change the API for literals in Java and Python. The input sentence is no longer a parameter to the callbacks.
2016-05-20 15:20:02 +00:00
krasimir
56b800fd5a
in case of null argument it is more intuitive to report the argument index by counting from 1.
2016-05-19 20:48:47 +00:00
krasimir
dff49cbe10
the constructor for expressions in the Java runtime now checks for null arguments. This means that a potential problem is detected earlier before we jump into the JNI code.
2016-05-19 20:41:09 +00:00
hallgren
1c2ab94ec5
Fix a problem building the Java binding when creating binary packages
...
Pass -I and -L flags to gcc so that the C run-time system can be found.
Also added a line in src/runtime/java/Makefile to install jpgf.jar.
2016-04-25 14:21:04 +00:00
krasimir
727a94329c
added PGF.inferExpr and Type.toString in the Java binding
2016-04-14 13:12:22 +00:00
krasimir
6f0159e08e
added PGF.compute in the Java binding
2016-04-13 12:57:06 +00:00
krasimir
289957db74
added getFunctionsByCat
2016-04-13 12:49:08 +00:00
krasimir
18a5548b2b
added getCategories() and getFunctions() in the Java binding
2016-04-13 12:02:42 +00:00
krasimir
8acbc6ba45
Now we even test in two different places for the JNI headers. Once for Linux and once for Mac OS. This is still not ideal since different Linux distributions might use different locations.
2016-02-17 14:52:48 +00:00
krasimir
6a50ccb48b
typo in the new Makefile
2016-02-17 14:40:46 +00:00
krasimir
be9a8f5a1f
a version of the Makefile for the Java binding which should work on Linux and Mac OS
2016-02-17 14:37:55 +00:00
krasimir
b77a0d6801
javadoc comments in the Java binding
2016-01-14 19:03:13 +00:00
krasimir
8ddf367277
fix in the Java binding: the Expr class should also ensure that libjpgf.so is loaded to avoid failures if Expr is the first class that is used.
2015-11-27 15:35:53 +00:00
krasimir
5dcdf46b90
added Expr.equals method in the Java binding
2015-11-26 15:38:12 +00:00
krasimir
fae5cba926
bugfix in the Makefile for the Java binding for creating .jar files
2015-11-16 14:39:52 +00:00
krasimir
25906435f0
bugfix in the SG binding for Java
2015-11-13 17:21:27 +00:00
krasimir
1963e5aaaf
added Java API for insertion of triples in the semantic graph
2015-11-13 14:34:24 +00:00
krasimir
73274da145
API for triple queries from Java
2015-09-04 11:03:46 +00:00
krasimir
5bcc2741fe
Java API for opening/closing SG databases
2015-09-03 13:52:32 +00:00
krasimir
40f7948276
the Eclipse project for the Java binding is now replaced with a simple Makefile
2015-09-03 10:27:50 +00:00
krasimir
4b1d958730
silence compilation warnings in the Java binding
2015-09-03 10:11:23 +00:00
krasimir
85e6e017af
merge the states for reasoning and evaluation into a single structure
2015-07-03 11:53:52 +00:00
krasimir
4347ce727a
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
3ebadcbc3b
the callbacks in C now take the concrete syntax as a parameter
2015-05-18 14:41:33 +00:00
krasimir
5754848626
bugfix in the java binding
2015-04-16 13:53:03 +00:00
kr.angelov
9b7e18c25e
change in the API for literals
...
The API in the C runtime as well as in the Haskell, Python and Java binding
is changed. Now instead of adding the literal callbacks to the concrete syntax
you need to supply them every time when you need to parse. The main reason is:
- referentially transparent API for Haskell
- when we start using memory mapped files we will not be allowed to change
anything in the grammar data structures. At that point the old API would
be impossible to use.
2014-12-16 10:21:26 +00:00
kr.angelov
0f3f2b6039
update the nerc for the changes in the grammar
2014-12-11 21:54:34 +00:00
kr.angelov
cfb688afce
make sure that neither I nor I'm is recognized as name in English
2014-12-09 08:49:22 +00:00
kr.angelov
3ef92fc5cc
bugfix for unknown words
2014-12-08 19:38:03 +00:00
kr.angelov
ba9ccca0bd
fix for the unknown words
2014-12-08 15:42:14 +00:00
kr.angelov
fa53434bce
added a callback for unknown words
2014-12-08 15:18:01 +00:00
kr.angelov
3a95d733dd
CAPIT is now naturally supported in the C runtime
2014-10-22 15:05:55 +00:00
kr.angelov
57f7b61c6b
throw away the long obsolete runtime type information in the C runtime
2014-10-09 13:44:26 +00:00
kr.angelov
03b067782c
a partial support for def rules in the C runtime
...
The def rules are now compiled to byte code by the compiler and then to
native code by the JIT compiler in the runtime. Not all constructions
are implemented yet. The partial implementation is now in the repository
but it is not activated by default since this requires changes in the
PGF format. I will enable it only after it is complete.
2014-08-11 10:59:10 +00:00
kr.angelov
42dea944d9
added bracketedLinearize in the Java binding
2014-07-02 07:08:01 +00:00
kr.angelov
410b7c78ce
fixed rare memory leak in the Java bindings
2014-07-02 07:06:51 +00:00
kr.angelov
b9ffc8ac00
a few changes in the Nerc that I have forgoten to push
2014-07-01 17:32:25 +00:00
kr.angelov
3843f5505e
fix warnings in the compilation of the Java binding
2014-07-01 17:31:29 +00:00
kr.angelov
7d713d1687
now the named entities recognizer returns dictionary entries if the name is known
2014-06-17 06:57:12 +00:00
kr.angelov
78d8524138
bugfix in the Java binding. it was causing a crash in the Android app
2014-05-23 10:52:00 +00:00
kr.angelov
802a106b3e
fix the literals API in Java for strings with non-latin characters
2014-05-08 14:56:46 +00:00
kr.angelov
b21f2c04e1
an initial Java/C API for predicting literals. Still not utilized
2014-04-25 08:53:18 +00:00
kr.angelov
c2d79790a3
forgoten Completer.java
2014-04-11 07:52:10 +00:00
kr.angelov
a28d0d246f
expose Java API for word completion
2014-04-11 07:50:22 +00:00
kr.angelov
ea40bc151b
change the JVM version to 1.6 in JNI_OnLoad
2014-04-11 07:15:27 +00:00
kr.angelov
77c545fa4f
bugfix in the Java binding
2014-04-10 16:43:40 +00:00
kr.angelov
a9ebeaea44
now fully functional Java API for custom literals
2014-04-10 14:14:31 +00:00
kr.angelov
be62b047f4
added preliminary API for custom literals from Java. Not functional yet
2014-04-08 13:54:49 +00:00
kr.angelov
baef6eee90
Expr and ExprProb are now serializable objects
2014-04-07 12:52:51 +00:00
kr.angelov
1a1e7cdb2e
compute the right word probability
2014-03-12 15:36:40 +00:00