public interface SequenceExampleGenerator
SequenceExampleGenerator generates a copy of an input
Example (reflecting an item in a SequenceExample)
enriched with information derived from the | Modifier and Type | Method and Description |
|---|---|
Example |
generateExampleWithHistory(SequenceExample sequenceExample,
SequencePath sequencePath,
int offset)
At labeling time, this method allows to enrich a specific
Example with the labels assigned by the classifier to the
previous Examples |
SequenceExample |
generateSequenceExampleEnrichedWithHistory(SequenceExample sequenceExample)
This method allows to enrich each
Example from an input
SequenceExample with the labels assigned by the classifier
to the previous Examples |
int |
getTransitionsOrder() |
Example generateExampleWithHistory(SequenceExample sequenceExample, SequencePath sequencePath, int offset)
Example with the labels assigned by the classifier to the
previous ExamplessequenceExample - The targeted sequencesequencePath - the sequence of Label assigned from a classifier
to the SequenceExamlpeoffset - the offset of the targeted word in the sequenceSequenceExample generateSequenceExampleEnrichedWithHistory(SequenceExample sequenceExample)
Example from an input
SequenceExample with the labels assigned by the classifier
to the previous ExamplessequenceExample - The input sequenceint getTransitionsOrder()
n of elements (in the sequence) whose
labels are to be considered to enrich a targeted elementCopyright © 2018 Semantic Analytics Group @ Uniroma2. All rights reserved.