All Methods Static Methods Instance Methods Concrete Methods
Modifier and Type |
Method and Description |
protected void |
add(List<CoreLabel> sent,
String sentId,
boolean addProcessedText) |
void |
add(Map<String,List<CoreLabel>> sents,
boolean addProcessedText)
addProcessedText is true when inserting sentences for the first time
|
static InvertedIndexByTokens |
createIndex(Map<String,List<CoreLabel>> sentences,
Properties props,
Set<String> stopWords,
String dir,
java.util.function.Function<CoreLabel,Map<String,String>> transformCoreLabeltoString) |
void |
finishUpdating() |
Set<String> |
getFileSentIds(CollectionValuedMap<String,String> relevantWords) |
Map<Integer,Set<String>> |
getFileSentIdsFromPats(Collection<Integer> pats,
Index<SurfacePattern> index) |
static InvertedIndexByTokens |
loadIndex(Properties props,
Set<String> stopwords,
String dir,
java.util.function.Function<CoreLabel,Map<String,String>> transformSentenceToString) |
Map<Integer,Set<String>> |
queryIndex(Collection<Integer> patterns,
ConcurrentHashIndex<SurfacePattern> patternIndex) |
void |
saveIndex(String dir) |
void |
update(List<CoreLabel> tokens,
String sentid) |