public class InvertedIndexByTokens extends Object implements Serializable
| Constructor and Description |
|---|
InvertedIndexByTokens(File invertedIndexDir,
boolean lc,
Set<String> stopWords,
Set<String> specialWords,
boolean batchProcessSents,
String dirName) |
InvertedIndexByTokens(Map<String,Hashtable<String,Set<String>>> index,
boolean lc,
Set<String> stopWords,
Set<String> specialWords,
boolean batchProcessSents,
String dirName) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Set<String>> |
getFileSentIds(Set<String> words) |
Map<String,Set<String>> |
getFileSentIds(String word) |
Map<String,Set<String>> |
getFileSentIdsFromPats(Set<SurfacePattern> pats) |
Set<String> |
getKeySet() |
Set<String> |
getSpecialWordsList() |
boolean |
isBatchProcessed() |
static InvertedIndexByTokens |
loadIndex(String dir) |
int |
numAllEntries() |
void |
saveIndex(String dir) |
int |
size() |
public InvertedIndexByTokens(File invertedIndexDir, boolean lc, Set<String> stopWords, Set<String> specialWords, boolean batchProcessSents, String dirName)
public Map<String,Set<String>> getFileSentIdsFromPats(Set<SurfacePattern> pats)
public void saveIndex(String dir) throws IOException
IOExceptionpublic static InvertedIndexByTokens loadIndex(String dir)
public int size()
public boolean isBatchProcessed()
public int numAllEntries()