public static class YagoEntityCandidateFinderFactory.YagoEntityCandidateFinder extends Object
| Modifier and Type | Method and Description |
|---|---|
List<List<NamedEntity>> |
getCandidates(List<String> tokens)
Gets candidate entities.
|
List<List<NamedEntity>> |
getCandidatesFromReversableTokenList(List<TokenAnnotation> tokens)
Gets candidate entities.
|
void |
setNgrams(Integer... ngrams)
Set the ngram sizes that the CandidateFinder will search with.
|
public void setNgrams(Integer... ngrams)
ngrams - public List<List<NamedEntity>> getCandidates(List<String> tokens)
tokens - NamedEntitys that are matched to
the same tokens. ( A token ngram can match to multiple
entities )public List<List<NamedEntity>> getCandidatesFromReversableTokenList(List<TokenAnnotation> tokens)
tokens - NamedEntitys that are matched to
the same tokens. ( A token ngram can match to multiple
entities )