mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-20 18:29:33 -06:00
now the named entities recognizer returns dictionary entries if the name is known
This commit is contained in:
@@ -495,7 +495,7 @@ public class Translator {
|
||||
long t1 = System.currentTimeMillis();
|
||||
mConcr = mGrammarLoader.getGrammar().getLanguages().get(mLanguage.getConcrete());
|
||||
mConcr.load(in);
|
||||
mConcr.addLiteral("Symb", new NercLiteralCallback());
|
||||
mConcr.addLiteral("PN", new NercLiteralCallback(mGrammarLoader.getGrammar(), mConcr));
|
||||
long t2 = System.currentTimeMillis();
|
||||
Log.d(TAG, name + " loaded ("+(t2-t1)+" ms)");
|
||||
} catch (FileNotFoundException e) {
|
||||
|
||||
Reference in New Issue
Block a user