public interface NameRecognizer
Modifier and Type | Method and Description |
---|---|
<T extends AdornedWord> |
findNamePositions(java.util.List<java.util.List<T>> sentences)
Returns name positions in list of adorned word sentences.
|
<T extends AdornedWord> |
findNames(java.util.List<java.util.List<T>> sentences)
Returns names from list of adorned word sentences.
|
java.util.Set<java.lang.String>[] |
findNames(java.lang.String text)
Returns names from text.
|
Lexicon |
getLexicon()
Get the lexicon.
|
PartOfSpeechTagger |
getPartOfSpeechTagger()
Get part of speech tagger.
|
void |
setLexicon(Lexicon lexicon)
Set the lexicon.
|
void |
setPartOfSpeechTagger(PartOfSpeechTagger partOfSpeechTagger)
Set part of speech tagger.
|
Lexicon getLexicon()
void setLexicon(Lexicon lexicon)
lexicon
- Lexicon used for name recognition.PartOfSpeechTagger getPartOfSpeechTagger()
void setPartOfSpeechTagger(PartOfSpeechTagger partOfSpeechTagger)
partOfSpeechTagger
- The part of speech tagger.java.util.Set<java.lang.String>[] findNames(java.lang.String text)
text
- The text from which to extract names.<T extends AdornedWord> java.util.Set<java.lang.String>[] findNames(java.util.List<java.util.List<T>> sentences)
sentences
- The list of sentences of adorned words
from which to extract names.<T extends AdornedWord> java.util.List<NamePosition>[] findNamePositions(java.util.List<java.util.List<T>> sentences)
sentences
- The list of sentences of adorned words
from which to extract names.