net.sourceforge.nite.datainspection.timespan
Class BoundaryExtractor
java.lang.Object
net.sourceforge.nite.datainspection.timespan.BoundaryExtractor
public class BoundaryExtractor
- extends java.lang.Object
Given a lot of information about the NOM annotation layers in a NOMCorpus, extracts the derived
'boundary' annotation for a given annotator and returns it as a List of Boundaries. These lists
will then be aligned by the BoundaryAligner.
See design on paper for documentation :)
Method Summary |
static java.util.ArrayList |
extractBoundaries(NOMWriteCorpus corpus,
java.lang.String coder,
java.lang.String codingName,
java.lang.String segmentsLayer,
java.lang.String segmentElementName,
java.lang.String agentName)
Note: this extract method presumes a codingname, a segmentlayer name and an element name. |
static java.util.List |
search(NOMWriteCorpus nom,
java.lang.String query)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BoundaryExtractor
public BoundaryExtractor()
extractBoundaries
public static java.util.ArrayList extractBoundaries(NOMWriteCorpus corpus,
java.lang.String coder,
java.lang.String codingName,
java.lang.String segmentsLayer,
java.lang.String segmentElementName,
java.lang.String agentName)
- Note: this extract method presumes a codingname, a segmentlayer name and an element name.
This is because a layer can contain more than one type of element. If you want to include more or all element types
of a layer in your analysis you need to write a new extract method based on this one.
Note: this extract method does NOT use the elementBefore and elementAfter attributes of the Boundary class.
search
public static java.util.List search(NOMWriteCorpus nom,
java.lang.String query)