Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
COLLECTION_FILE
Name for the output documents' object file
|
protected cat.lump.ir.index.DocumentCollection |
docCollection
Internal collection of documents
|
protected java.lang.Boolean |
INCLUDE_BOW
Representations to include
|
protected java.lang.Boolean |
INCLUDE_CNG
Representations to include
|
protected java.lang.Boolean |
INCLUDE_COG
Representations to include
|
protected java.lang.Boolean |
INCLUDE_WNG
Representations to include
|
protected java.util.Map<RepresentationType,Index> |
index
Inverted index used to compute similarities
|
protected java.lang.String[] |
INDEX_FILE
Prefix and suffix for the index-related files
|
protected java.io.File |
indexPath
Path to the index
|
protected java.util.Locale |
locale
Language of the index/query
|
protected RepresentationType[] |
repType
Set of representations to generate/load in the index
|
Constructor and Description |
---|
Abstracter(java.util.Locale lan,
java.io.File indexDir,
RepresentationType[] repr)
Calls the setters for language and representation type.
|
Modifier and Type | Method and Description |
---|---|
protected void |
loadIndex()
Loads the index components (empty if new, with data if existed
previously).
|
protected java.util.Locale locale
protected cat.lump.ir.index.DocumentCollection docCollection
protected java.util.Map<RepresentationType,Index> index
protected RepresentationType[] repType
protected java.lang.Boolean INCLUDE_BOW
protected java.lang.Boolean INCLUDE_COG
protected java.lang.Boolean INCLUDE_CNG
protected java.lang.Boolean INCLUDE_WNG
protected final java.lang.String COLLECTION_FILE
protected final java.lang.String[] INDEX_FILE
protected java.io.File indexPath
public Abstracter(java.util.Locale lan, java.io.File indexDir, RepresentationType[] repr)
lan
- indexDir
- repr
-