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 Example s |
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 Example s |
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)
SequenceExampleGenerator
Example
with the labels assigned by the classifier to the
previous Example
sgenerateExampleWithHistory
in interface SequenceExampleGenerator
sequenceExample
- The targeted sequencep
- the sequence of Label
assigned from a classifier
to the SequenceExamlpe
elementId
- the offset of the targeted word in the sequencepublic SequenceExample generateSequenceExampleEnrichedWithHistory(SequenceExample sequenceExample)
SequenceExampleGenerator
Example
from an input
SequenceExample
with the labels assigned by the classifier
to the previous Example
sgenerateSequenceExampleEnrichedWithHistory
in interface SequenceExampleGenerator
sequenceExample
- The input sequencepublic String getTransitionRepresentationName()
public int getTransitionsOrder()
getTransitionsOrder
in interface SequenceExampleGenerator
n
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.