public class SentenceTransformer extends java.lang.Object implements SequenceTransformer<VocabWord,java.lang.String>, java.lang.Iterable<Sequence<VocabWord>>
Modifier and Type | Class and Description |
---|---|
static class |
SentenceTransformer.Builder |
Modifier and Type | Field and Description |
---|---|
protected boolean |
allowMultithreading |
protected BasicTransformerIterator |
currentIterator |
protected LabelAwareIterator |
iterator |
protected static org.slf4j.Logger |
log |
protected boolean |
readOnly |
protected java.util.concurrent.atomic.AtomicInteger |
sentenceCounter |
protected TokenizerFactory |
tokenizerFactory |
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<Sequence<VocabWord>> |
iterator() |
void |
reset() |
Sequence<VocabWord> |
transformToSequence(java.lang.String object)
This is generic method for transformation data from any format to Sequence of SequenceElement.
|
protected TokenizerFactory tokenizerFactory
protected LabelAwareIterator iterator
protected boolean readOnly
protected java.util.concurrent.atomic.AtomicInteger sentenceCounter
protected boolean allowMultithreading
protected BasicTransformerIterator currentIterator
protected static final org.slf4j.Logger log
public Sequence<VocabWord> transformToSequence(java.lang.String object)
SequenceTransformer
transformToSequence
in interface SequenceTransformer<VocabWord,java.lang.String>
object
- - Object to be transformed into Sequencepublic void reset()
reset
in interface SequenceTransformer<VocabWord,java.lang.String>