net.sourceforge.nite.datainspection.timespan
Class BoundaryAlignmentToClassificationFactory
java.lang.Object
net.sourceforge.nite.datainspection.timespan.BoundaryAlignmentToClassificationFactory
public class BoundaryAlignmentToClassificationFactory
- extends java.lang.Object
Given two aligned boundary lists, make two calc.Classification as follows:
1) All Pairs of aligned boundaries are Items; the Value for both annotators is True
2) For each unaligned boundary a Pair is made as Item with the unaligned boundary,
and a null for the other annotator; the Values for this Item are True for the annotator
who DID find a boundary, and False for the other.
NOTE: not used right now. See package doc for explanation why not.
See design on paper for documentation.
Method Summary |
static Pair |
makeClassificationsFromAlignments(BoundaryAlignment alignment)
Given two aligned boundary lists, make two calc.Classification as follows:
1) All Pairs of aligned boundaries are Items; the Value for both annotators is True
2) For each unaligned boundary a Pair is made as Item with the unaligned boundary,
and a null for the other annotator; the Values for this Item are True for the annotator
who DID find a boundary, and False for the other. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BoundaryAlignmentToClassificationFactory
public BoundaryAlignmentToClassificationFactory()
makeClassificationsFromAlignments
public static Pair makeClassificationsFromAlignments(BoundaryAlignment alignment)
- Given two aligned boundary lists, make two calc.Classification as follows:
1) All Pairs of aligned boundaries are Items; the Value for both annotators is True
2) For each unaligned boundary a Pair is made as Item with the unaligned boundary,
and a null for the other annotator; the Values for this Item are True for the annotator
who DID find a boundary, and False for the other. Returns a Pair of Classifications.