1
0
forked from GitHub/gf-core

named entities in the Android App

This commit is contained in:
kr.angelov
2014-04-11 12:56:31 +00:00
parent 77586aa080
commit 1e177ed6a9

View File

@@ -11,6 +11,7 @@ import org.grammaticalframework.pgf.Expr;
import org.grammaticalframework.pgf.ExprProb;
import org.grammaticalframework.pgf.FullFormEntry;
import org.grammaticalframework.pgf.MorphoAnalysis;
import org.grammaticalframework.pgf.NercLiteralCallback;
import org.grammaticalframework.pgf.PGF;
import org.grammaticalframework.pgf.ParseError;
@@ -494,6 +495,7 @@ public class Translator {
long t1 = System.currentTimeMillis();
mConcr = mGrammarLoader.getGrammar().getLanguages().get(mLanguage.getConcrete());
mConcr.load(in);
mConcr.addLiteral("Symb", new NercLiteralCallback());
long t2 = System.currentTimeMillis();
Log.d(TAG, name + " loaded ("+(t2-t1)+" ms)");
} catch (FileNotFoundException e) {