| Constructor and Description |
|---|
NameFactory() |
| Modifier and Type | Method and Description |
|---|---|
Name |
createName(String nameString,
String neType)
Constructs a
Name as a String with a class type (e.g. |
Name |
createName(String nameString,
String neType,
int offset,
int length)
Constructs a
Name as a String with corresponding offsets and length
from which to calculate start and end position of the Name. |
Name |
createName(String nameString,
String neType,
opennlp.tools.util.Span neSpan)
Constructs a
Name as a String with a type and a Span
specified in terms of the number of tokens it contains. |
Name |
createName(String nameString,
String neType,
opennlp.tools.util.Span neSpan,
int offset,
int length)
Constructs a Name as a String with corresponding offsets and length from
which to calculate start and end position of the Name.
|
public final Name createName(String nameString, String neType)
Name as a String with a class type (e.g. Person,
location, organization, etc.)nameString - string to be added to a Name objectneType - the type of the Namepublic final Name createName(String nameString, String neType, opennlp.tools.util.Span neSpan)
Name as a String with a type and a Span
specified in terms of the number of tokens it contains.nameString - string to be added to a Name objectneType - the type of the NameneSpan - the span of the Namepublic final Name createName(String nameString, String neType, int offset, int length)
Name as a String with corresponding offsets and length
from which to calculate start and end position of the Name.nameString - string to be added to a Name objectneType - the type of the Nameoffset - the starting offset of the Namelength - of the stringpublic final Name createName(String nameString, String neType, opennlp.tools.util.Span neSpan, int offset, int length)
nameString - string to be added to a Name objectneType - the type of the NameneSpan - the Spanoffset - the starting offset of the Namelength - of the stringCopyright © 2016 IXA pipes. All rights reserved.