public class MappedNGramResult
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected int |
coverEnd |
protected int |
coverStart |
protected int |
index |
protected java.util.List<java.lang.String> |
keyList |
protected int |
nucleusIndex |
Constructor and Description |
---|
MappedNGramResult(int index,
java.lang.String key,
SentenceInfo si) |
Modifier and Type | Method and Description |
---|---|
void |
addKey(java.lang.String key) |
boolean |
containsIntIndex(int index)
containsIntEndex check if we have the input corpusindex
in our resulting list, return the index if found
|
boolean |
equals(java.lang.Object obj) |
int |
getCoverEnd() |
int |
getCoverStart() |
int |
getIndex() |
java.lang.String |
getKeyAt(int index) |
int |
getKeyListSize() |
int |
getNucleusIndex() |
int |
hashCode() |
int |
indexOfKex(java.lang.String key) |
void |
setCoverEnd(int coverEnd) |
void |
setCoverStart(int coverStart) |
void |
setIndex(int index) |
void |
setNucleusIndex(int nucleusIndex) |
protected int index
protected java.util.List<java.lang.String> keyList
protected int coverStart
protected int coverEnd
protected int nucleusIndex
public MappedNGramResult(int index, java.lang.String key, SentenceInfo si)
index
- key
- public int getNucleusIndex()
public void setNucleusIndex(int nucleusIndex)
nucleusIndex
- the nucleusIndex to setpublic java.lang.String getKeyAt(int index)
public int getKeyListSize()
public void addKey(java.lang.String key)
public int indexOfKex(java.lang.String key)
public int getCoverStart()
public void setCoverStart(int coverStart)
coverStart
- the coverStart to setpublic int getCoverEnd()
public void setCoverEnd(int coverEnd)
coverEnd
- the coverEnd to setpublic int getIndex()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
public void setIndex(int index)
index
- the index to setpublic boolean containsIntIndex(int index)
index
-