mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-24 03:52:50 -06:00
named entities in the Android App
This commit is contained in:
@@ -11,6 +11,7 @@ import org.grammaticalframework.pgf.Expr;
|
|||||||
import org.grammaticalframework.pgf.ExprProb;
|
import org.grammaticalframework.pgf.ExprProb;
|
||||||
import org.grammaticalframework.pgf.FullFormEntry;
|
import org.grammaticalframework.pgf.FullFormEntry;
|
||||||
import org.grammaticalframework.pgf.MorphoAnalysis;
|
import org.grammaticalframework.pgf.MorphoAnalysis;
|
||||||
|
import org.grammaticalframework.pgf.NercLiteralCallback;
|
||||||
import org.grammaticalframework.pgf.PGF;
|
import org.grammaticalframework.pgf.PGF;
|
||||||
import org.grammaticalframework.pgf.ParseError;
|
import org.grammaticalframework.pgf.ParseError;
|
||||||
|
|
||||||
@@ -494,6 +495,7 @@ public class Translator {
|
|||||||
long t1 = System.currentTimeMillis();
|
long t1 = System.currentTimeMillis();
|
||||||
mConcr = mGrammarLoader.getGrammar().getLanguages().get(mLanguage.getConcrete());
|
mConcr = mGrammarLoader.getGrammar().getLanguages().get(mLanguage.getConcrete());
|
||||||
mConcr.load(in);
|
mConcr.load(in);
|
||||||
|
mConcr.addLiteral("Symb", new NercLiteralCallback());
|
||||||
long t2 = System.currentTimeMillis();
|
long t2 = System.currentTimeMillis();
|
||||||
Log.d(TAG, name + " loaded ("+(t2-t1)+" ms)");
|
Log.d(TAG, name + " loaded ("+(t2-t1)+" ms)");
|
||||||
} catch (FileNotFoundException e) {
|
} catch (FileNotFoundException e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user