|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eml.sir.retr.QueryGenerator
Generates queries by a SirDiscourse and settings.
Field Summary | |
static int |
CONT_BASE
Constant for content of QueryGenerator. |
static int |
CONT_WORD
Constant for content of QueryGenerator. |
Constructor Summary | |
QueryGenerator()
Create a new instance of QueryGenerator. |
Method Summary | |
int |
getAvoidNegativeProfFeatures()
Return wether this QueryGenerator is deleting all terms that belong to negative professional features. |
int |
getBoostPositiveProfFeatures()
If boost of positive professional features is activated (true), the positive professional feature terms will appear one more time. |
char |
getPosCategory()
Return the part-of-speech category that affects the getWordList() and the getBaseList() methods. |
org.apache.lucene.search.Query |
getQuery(SirDiscourse disc,
IndexProperties props)
Return query. |
int |
getUseWordsOrBases()
Return wether to use words or bases. |
boolean |
isIgnoreIrrelevantClauses()
Return wether this QueryGenerator ignores irrelevant clauses. |
boolean |
isTermRepeat()
Return wether to repeat terms in queries or not. |
boolean |
isUsingPhrases()
Return wether this QueryGenerator is using nominal phrases additionally. |
void |
setAvoidNegativeProfFeatures(int avoidNegativeProfFeatures)
Delete all terms that belong to negative professional features. |
void |
setBoostPositiveProfFeatures(int boostPositiveProfFeatures)
Return wether positive professional features are boosted. |
void |
setIgnoreIrrelevantClauses(boolean ignoreIrrelevantClauses)
Set wether this QueryGenerator has to ignore irrelevant clauses. |
void |
setPosCategory(char posCategory)
Set the part-of-speech category that affects the getWordList() and the getBaseList() methods. |
void |
setTermRepeat(boolean termRepeat)
|
void |
setUsePhrases(boolean usePhrases)
Set wether to use nominal phrases additionally or not. |
void |
setUseWordsOrBases(int wordsOrBases)
Set wether to use words or bases. |
java.lang.String |
toString()
Return a String that contains important information about this instance of QueryGenerator. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int CONT_WORD
public static final int CONT_BASE
Constructor Detail |
public QueryGenerator()
Method Detail |
public char getPosCategory()
public void setPosCategory(char posCategory)
public boolean isUsingPhrases()
public void setUsePhrases(boolean usePhrases)
public int getUseWordsOrBases()
public void setUseWordsOrBases(int wordsOrBases)
public boolean isTermRepeat()
public void setTermRepeat(boolean termRepeat)
termRepeat
- The term repeat to set.
Wird gemacht nachdem alle Wörter aus dem Discourse entnommen wurden,
aber bevor geboostet oder avoidet wird.public boolean isIgnoreIrrelevantClauses()
public void setIgnoreIrrelevantClauses(boolean ignoreIrrelevantClauses)
public int getAvoidNegativeProfFeatures()
public void setAvoidNegativeProfFeatures(int avoidNegativeProfFeatures)
public int getBoostPositiveProfFeatures()
public void setBoostPositiveProfFeatures(int boostPositiveProfFeatures)
public org.apache.lucene.search.Query getQuery(SirDiscourse disc, IndexProperties props)
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |