public class DictionariesNERTagger extends Object
Dictionaries objects This
class provides the following functionalities:
StatisticalSequenceLabeler; it also corrects the Name
type for those detected by a StatisticalSequenceLabeler but also
present in a dictionary.
| Constructor and Description |
|---|
DictionariesNERTagger(Dictionaries aDictionaries)
Construct a DictionaryNameFinder using one dictionary and one named entity
class.
|
DictionariesNERTagger(Dictionaries aDictionaries,
SequenceLabelFactory aNameFactory)
Construct a DictionariesNameFinder with a dictionary, a type and a name
factory.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearAdaptiveData()
Clear the adaptiveData for each document.
|
List<SequenceLabel> |
getNames(String[] tokens)
Dictionaries based Named Entity Detection and Classification. |
List<SequenceLabel> |
getNamesFromSpans(Span[] neSpans,
String[] tokens)
Creates a list of
SequenceLabel objects from spans and tokens. |
Span[] |
nercToSpans(String[] tokens)
Detects Named Entities in a
Dictionaries by NE type ignoring case. |
Span[] |
nercToSpansExact(String[] tokens)
Detects Named Entities in a
Dictionaries by NE type This method is
case sensitive. |
public DictionariesNERTagger(Dictionaries aDictionaries)
aDictionaries - the dictionariespublic DictionariesNERTagger(Dictionaries aDictionaries, SequenceLabelFactory aNameFactory)
aDictionaries - the dictionariesaNameFactory - the factorypublic final List<SequenceLabel> getNames(String[] tokens)
Dictionaries based Named Entity Detection and Classification.tokens - the tokenized sentenceSequenceLabel objectspublic final Span[] nercToSpans(String[] tokens)
Dictionaries by NE type ignoring case.tokens - the tokenized sentencepublic final Span[] nercToSpansExact(String[] tokens)
Dictionaries by NE type This method is
case sensitive.tokens - the tokenized sentencepublic final List<SequenceLabel> getNamesFromSpans(Span[] neSpans, String[] tokens)
SequenceLabel objects from spans and tokens.neSpans - the spans of the entities in the sentencetokens - the tokenized sentenceSequenceLabel objectspublic void clearAdaptiveData()
Copyright © 2017 IXA pipes. All rights reserved.