net.sourceforge.nite.datainspection.timespan
Class SegmentExtractor
java.lang.Object
net.sourceforge.nite.datainspection.timespan.SegmentExtractor
public class SegmentExtractor
- extends java.lang.Object
Given a lot of information about the NOM annotation layers in a NOMCorpus, extracts the
'segment' lists for a given annotator and returns it as a List.
See design on paper for documentation
Method Summary |
static java.util.ArrayList |
extractSegments(NOMWriteCorpus corpus,
java.lang.String coder,
java.lang.String codingName,
java.lang.String segmentsLayer,
java.lang.String segmentElementName,
java.lang.String agentName)
|
static java.util.ArrayList |
extractSegments(NOMWriteCorpus corpus,
java.lang.String coder,
java.lang.String codingName,
java.lang.String segmentsLayer,
java.lang.String segmentElementName,
java.lang.String agentName,
Predicate isIgnoreP)
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 |
SegmentExtractor
public SegmentExtractor()
extractSegments
public static java.util.ArrayList extractSegments(NOMWriteCorpus corpus,
java.lang.String coder,
java.lang.String codingName,
java.lang.String segmentsLayer,
java.lang.String segmentElementName,
java.lang.String agentName)
extractSegments
public static java.util.ArrayList extractSegments(NOMWriteCorpus corpus,
java.lang.String coder,
java.lang.String codingName,
java.lang.String segmentsLayer,
java.lang.String segmentElementName,
java.lang.String agentName,
Predicate isIgnoreP)
- 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.
search
public static java.util.List search(NOMWriteCorpus nom,
java.lang.String query)