public class SequenceLabelFactory extends Object
SequenceLabel objects.| Constructor and Description |
|---|
SequenceLabelFactory() |
| Modifier and Type | Method and Description |
|---|---|
SequenceLabel |
createSequence(String seqString,
String seqType)
Constructs a
SequenceLabel as a String with a class type (e.g. |
SequenceLabel |
createSequence(String seqString,
String seqType,
int offset,
int length)
Constructs a
SequenceLabel as a String with corresponding offsets and length
from which to calculate start and end position of the Name. |
SequenceLabel |
createSequence(String seqString,
String seqType,
Span seqSpan)
Constructs a
SequenceLabel as a String with a type and a Span
specified in terms of the number of tokens it contains. |
SequenceLabel |
createSequence(String seqString,
String seqType,
Span seqSpan,
int offset,
int length)
Constructs a Sequence as a String with corresponding offsets and length from
which to calculate start and end position of the Sequence.
|
public final SequenceLabel createSequence(String seqString, String seqType)
SequenceLabel as a String with a class type (e.g. Person,
location, organization, NNP, etc.)seqString - string to be added to a Name objectseqType - the type of the Namepublic final SequenceLabel createSequence(String seqString, String seqType, Span seqSpan)
SequenceLabel as a String with a type and a Span
specified in terms of the number of tokens it contains.seqString - string to be added to a Name objectseqType - the type of the NameseqSpan - the span of the Namepublic final SequenceLabel createSequence(String seqString, String seqType, int offset, int length)
SequenceLabel as a String with corresponding offsets and length
from which to calculate start and end position of the Name.seqString - string to be added to a Sequence objectseqType - the type of the Sequenceoffset - the starting offset of the Sequencelength - of the stringpublic final SequenceLabel createSequence(String seqString, String seqType, Span seqSpan, int offset, int length)
seqString - string to be added to a Name objectseqType - the type of the NameseqSpan - the Spanoffset - the starting offset of the Namelength - of the stringCopyright © 2016 IXA pipes. All rights reserved.