modnlp.idx.query
public class Horizon extends java.lang.Object
query = a+[2]be+see+Dee, keyword = see will set a left Horizon with: horizonArray = [ 4 , 1 ], wordArray = [ a, be ] maxSearchHorizon = 4That is, one can look back up to 4 words to be able to match "a", 1 word back to match "be". maxSearchHorizon is redundant.
WordQuery.getLeftHorizon()
,
WordQuery.getRightHorizon()
Constructor and Description |
---|
Horizon(int[] ha,
WordForms[] wa,
int sh)
Creates a new
Horizon instance. |
Modifier and Type | Method and Description |
---|---|
int[] |
getHorizonArray()
Describe
getHorizonArray method here. |
int |
getMaxSearchHorizon()
Describe
getMaxSearchHorizon method here. |
WordForms[] |
getWordArray()
Describe
getWordArray method here. |
void |
setHorizonArray(int[] ia)
Describe
setHorizonArray method here. |
void |
setMaxSearchHorizon(int sh)
Describe
setMaxSearchHorizon method here. |
void |
setWordArray(WordForms[] wa)
Describe
setWordArray method here. |
public Horizon(int[] ha, WordForms[] wa, int sh)
Horizon
instance.ha
- an int[]
valuewa
- a String[]
valuesh
- an int
valuepublic int[] getHorizonArray()
getHorizonArray
method here.int[]
valuepublic void setHorizonArray(int[] ia)
setHorizonArray
method here.ia
- an int[]
valuepublic WordForms[] getWordArray()
getWordArray
method here.String[]
valuepublic void setWordArray(WordForms[] wa)
setWordArray
method here.wa
- a String[]
valuepublic int getMaxSearchHorizon()
getMaxSearchHorizon
method here.int
valuepublic void setMaxSearchHorizon(int sh)
setMaxSearchHorizon
method here.sh
- an int
value