modnlp.idx.query
public class SubcorpusConstraints extends java.util.HashMap
KEY | SUBCORPUS_POS_PAIR ----------------------------------- FILE_ID | [SECTION_ID, ...]Section IDs can be any string (identified as an ID type in the DTD for the file from which sections are extracted by, for instance,
MakeSectionIndex
).
,
Serialized FormConstructor and Description |
---|
SubcorpusConstraints() |
SubcorpusConstraints(boolean negative) |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(java.lang.String fid,
int pos,
SubcorpusTable sbct) |
boolean |
accept(java.lang.String fid,
java.lang.String sid) |
boolean |
acceptFile(java.lang.String fid) |
int |
getTokenCount(java.lang.String fid,
IntegerSet pos,
SubcorpusTable sbct) |
static void |
main(java.lang.String[] argv) |
java.lang.Object |
put(java.lang.String fid,
java.util.HashSet hs) |
java.lang.Object |
putEntireFile(java.lang.String fid) |
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
public SubcorpusConstraints()
public SubcorpusConstraints(boolean negative)
public java.lang.Object put(java.lang.String fid, java.util.HashSet hs)
public java.lang.Object putEntireFile(java.lang.String fid)
public boolean accept(java.lang.String fid, int pos, SubcorpusTable sbct)
public boolean accept(java.lang.String fid, java.lang.String sid)
public boolean acceptFile(java.lang.String fid)
public int getTokenCount(java.lang.String fid, IntegerSet pos, SubcorpusTable sbct)
public static void main(java.lang.String[] argv)