now the named entities recognizer returns dictionary entries if the name is known

This commit is contained in:
kr.angelov
2014-06-17 06:57:12 +00:00
parent 9944916127
commit fe49ddf16d
4 changed files with 31 additions and 4 deletions

View File

@@ -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) {