forked from GitHub/gf-core
added signatures for missing API functions in Java. The implementation is still missing
This commit is contained in:
@@ -69,6 +69,9 @@ public class Concr {
|
|||||||
*/
|
*/
|
||||||
public native List<MorphoAnalysis> lookupMorpho(String sentence);
|
public native List<MorphoAnalysis> lookupMorpho(String sentence);
|
||||||
|
|
||||||
|
/** Creates an iterable over the full form lexicon in the grammar */
|
||||||
|
public native Iterable<FullFormEntry> fullFormLexicon();
|
||||||
|
|
||||||
/** Returns an iterable enumerating all words in the lexicon
|
/** Returns an iterable enumerating all words in the lexicon
|
||||||
* starting with a given prefix.
|
* starting with a given prefix.
|
||||||
* @param prefix the prefix of the word.
|
* @param prefix the prefix of the word.
|
||||||
@@ -83,6 +86,8 @@ public class Concr {
|
|||||||
*/
|
*/
|
||||||
public native boolean hasLinearization(String fun);
|
public native boolean hasLinearization(String fun);
|
||||||
|
|
||||||
|
public native String graphvizParseTree(Expr expr);
|
||||||
|
|
||||||
/** returns the print name for that function or category.
|
/** returns the print name for that function or category.
|
||||||
*/
|
*/
|
||||||
public native String getPrintName(String id);
|
public native String getPrintName(String id);
|
||||||
|
|||||||
@@ -68,6 +68,9 @@ public class PGF {
|
|||||||
* of the expression together with its type */
|
* of the expression together with its type */
|
||||||
public native TypedExpr inferExpr(Expr expr) throws TypeError;
|
public native TypedExpr inferExpr(Expr expr) throws TypeError;
|
||||||
|
|
||||||
|
|
||||||
|
public native String graphvizAbstractTree(Expr expr);
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////
|
||||||
// private stuff
|
// private stuff
|
||||||
private Pool pool;
|
private Pool pool;
|
||||||
|
|||||||
@@ -15,6 +15,8 @@ public class Type {
|
|||||||
|
|
||||||
public native String toString();
|
public native String toString();
|
||||||
|
|
||||||
|
public native static Type readType(String s);
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////
|
||||||
// private stuff
|
// private stuff
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user