public class SequenceExampleGeneratorKernel extends Object implements SequenceExampleGenerator
SequenceExampleGeneratorKernelBasedAlg allows to
implicitly enrich a targeted Example (reflecting an item
in a SequenceExample) with information derived from the | Constructor and Description |
|---|
SequenceExampleGeneratorKernel() |
SequenceExampleGeneratorKernel(int transitionsOrder,
String transitionRepresentationName) |
| Modifier and Type | Method and Description |
|---|---|
Example |
generateExampleWithHistory(SequenceExample sequenceExample,
SequencePath p,
int elementId)
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 |
String |
getTransitionRepresentationName() |
int |
getTransitionsOrder() |
void |
setTransitionRepresentationName(String transitionRepresentationName) |
void |
setTransitionsOrder(int transitionsOrder) |
public SequenceExampleGeneratorKernel()
public SequenceExampleGeneratorKernel(int transitionsOrder,
String transitionRepresentationName)
public Example generateExampleWithHistory(SequenceExample sequenceExample, SequencePath p, int elementId)
SequenceExampleGeneratorExample with the labels assigned by the classifier to the
previous ExamplesgenerateExampleWithHistory in interface SequenceExampleGeneratorsequenceExample - The targeted sequencep - the sequence of Label assigned from a classifier
to the SequenceExamlpeelementId - the offset of the targeted word in the sequencepublic SequenceExample generateSequenceExampleEnrichedWithHistory(SequenceExample sequenceExample)
SequenceExampleGeneratorExample from an input
SequenceExample with the labels assigned by the classifier
to the previous ExamplesgenerateSequenceExampleEnrichedWithHistory in interface SequenceExampleGeneratorsequenceExample - The input sequencepublic String getTransitionRepresentationName()
public int getTransitionsOrder()
getTransitionsOrder in interface SequenceExampleGeneratorn of elements (in the sequence) whose
labels are to be considered to enrich a targeted elementpublic void setTransitionRepresentationName(String transitionRepresentationName)
public void setTransitionsOrder(int transitionsOrder)
Copyright © 2018 Semantic Analytics Group @ Uniroma2. All rights reserved.