|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectopennlp.tools.namefind.RegexNameFinder
public final class RegexNameFinder
Name finder based on a series of regular expressions.
| Constructor Summary | |
|---|---|
RegexNameFinder(java.util.regex.Pattern[] patterns)
|
|
| Method Summary | |
|---|---|
void |
clearAdaptiveData()
Forgets all adaptive data which was collected during previous calls to one of the find methods. |
Span[] |
find(java.lang.String[] tokens)
Generates name tags for the given sequence, typically a sentence, returning token spans for any identified names. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RegexNameFinder(java.util.regex.Pattern[] patterns)
| Method Detail |
|---|
public Span[] find(java.lang.String[] tokens)
TokenNameFinder
find in interface TokenNameFindertokens - an array of the tokens or words of the sequence, typically a sentence.
public void clearAdaptiveData()
TokenNameFinder
clearAdaptiveData in interface TokenNameFinder
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||