public static class BasicLabelAwareIterator.Builder
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
Builder()
This method should stay protected, since it's only viable for testing purposes
|
|
Builder(DocumentIterator iterator)
We assume that each inputStream in this iterator is separate document/paragraph
|
|
Builder(LabelAwareDocumentIterator iterator)
We assume that each inputStream in this iterator is separate document/paragraph
Labels will be converted into LabelledDocument format
|
|
Builder(LabelAwareIterator iterator) |
|
Builder(LabelAwareSentenceIterator iterator)
We assume that each sentence in this iterator is separate document/paragraph.
|
|
Builder(SentenceIterator iterator)
We assume that each sentence in this iterator is separate document/paragraph
|
Modifier and Type | Method and Description |
---|---|
BasicLabelAwareIterator |
build() |
BasicLabelAwareIterator.Builder |
setLabelsSource(LabelsSource source)
TODO: To be implemented
|
BasicLabelAwareIterator.Builder |
setLabelTemplate(java.lang.String template)
Label template will be used for sentence labels generation.
|
protected Builder()
public Builder(@NonNull SentenceIterator iterator)
iterator
- public Builder(@NonNull DocumentIterator iterator)
iterator
- public Builder(@NonNull LabelAwareSentenceIterator iterator)
iterator
- public Builder(@NonNull LabelAwareDocumentIterator iterator)
iterator
- public Builder(@NonNull LabelAwareIterator iterator)
public BasicLabelAwareIterator.Builder setLabelTemplate(@NonNull java.lang.String template)
template
- public BasicLabelAwareIterator.Builder setLabelsSource(@NonNull LabelsSource source)
source
- public BasicLabelAwareIterator build()