|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eml.sir.retr.SirDiscourse
Wrapper class for MMAX2Discourse realizing easy access to the SIR-specific discourses, espacially on the data relevant for generating terms.
Field Summary | |
static int |
FEAT_ACTIVITY
Constant for professional features of SirDiscourse. |
static int |
FEAT_ALL
Constant for professional features of SirDiscourse. |
static int |
FEAT_NOT
Constant for professional features of SirDiscourse. |
static int |
FEAT_OBJECT
Constant for professional features of SirDiscourse. |
static int |
FEAT_OTHER
Constant for professional features of SirDiscourse. |
static int |
FEAT_WORKING_PLACE
Constant for professional features of SirDiscourse. |
static java.lang.String |
TYPE_NP
Constant for phrase type of SirDiscourse. |
static java.lang.String |
TYPE_PP
Constant for phrase type of SirDiscourse. |
Constructor Summary | |
SirDiscourse(java.lang.String fileName,
boolean isProfile)
Create a new SirDiscourse instance. |
Method Summary | |
java.util.ArrayList |
getBaseList()
Return all stem occurences contained in this SirDiscourse according to the setting of the part-of-speech category and the compund base merging. |
java.util.ArrayList |
getConstituentList(java.lang.String t)
TYPE_NP / TYPE_PP ignores: ignoreIrrelevantClauses, onlyPositiveProfFeatures, onlyNegativeProfFeatures |
java.lang.String |
getFileName()
Return the file name. |
int |
getNumberOfIrrelevantClauses()
Return number of requested clauses. |
int |
getNumberOfNegativeOpinionWords()
Return number of requested words. |
int |
getNumberOfNegativeProfessionalFeatures()
Return number of requested features. |
int |
getNumberOfNeutralOpinionWords()
Return number of requested words. |
int |
getNumberOfOpinionWords()
Return number of requested words. |
int |
getNumberOfOtherProfessionalCategory()
Return number of requested feature. |
int |
getNumberOfPositiveOpinionWords()
Return number of requested words. |
int |
getNumberOfPositiveProfessionalFeatures()
Return number of requested features. |
int |
getNumberOfProfessionalActivity()
Return number of requested feature. |
int |
getNumberOfProfessionalObject()
Return number of requested feature. |
int |
getNumberOfProfessionalPlace()
Return number of requested feature. |
int |
getNumberOfSentences()
Return the number of sentences. |
int |
getNumberOfStrongOpinionWords()
Return number of requested words. |
int |
getNumberOfSurelyIrrelevantClauses()
Return number of requested clauses. |
int |
getNumberOfUnsurelyIrrelevantClauses()
Return number of requested clauses. |
int |
getNumberOfVerbNodes()
Return the number of verb-nodes. |
int |
getNumberOfWords()
Return the number of words (including punctuation marks '.' and ','). |
int |
getNumberOfWordsInSentences()
Return the number of words in sentences. |
int |
getNumberOfWordsInVerbNodes()
Return the number of words in verb-nodes. |
int |
getOnlyNegativeProfFeatures()
Get the type of negative professional feature will be exclusivly returned by using getWordList() or getBaseList(). |
int |
getOnlyPositiveProfFeatures()
Get what type of positive professional feature will be exclusivly returned by using getWordList() or getBaseList(). |
char |
getPosCategory()
Return what kind of part-of-speech the words/bases are that this SirDiscourse instance returns. |
java.util.ArrayList |
getWordList()
Return list of words of this SirDiscourse. |
boolean |
isCompoundBaseMerging()
Return wether this SirDiscourse merges the bases of compounds to one term or delivers the bases each as one seperate term. |
boolean |
isIgnoreIrrelevantClauses()
Return wether this SirDiscourse ignores irrelevant clauses when returning words (getWordList()) or bases (getBaseList()). |
boolean |
isProfile()
Return wether this SirDiscourse is a profile. |
void |
setCompoundBaseMerging(boolean merge)
Set wether this SirDiscourse merges the bases of compounds to one term or delivers the bases each as one seperate term. |
void |
setFileName(java.lang.String fileName)
Set the file name. |
void |
setIgnoreIrrelevantClauses(boolean ignoreIrrelevantClauses)
Set wether this SirDiscourse ignores irrelevant clauses when returning words (getWordList()) or bases (getBaseList()). |
void |
setOnlyNegativeProfFeatures(int onlyNegativeProfFeatures)
Set the type of negative professional feature will be exclusivly returned by using getWordList() or getBaseList(). |
void |
setOnlyPositiveProfFeatures(int onlyPositiveProfFeatures)
Set what type of positive professional feature will be exclusivly returned by using getWordList() or getBaseList(). |
void |
setPosCategory(char cat)
Set what kind of part-of-speech the words/bases are that this SirDiscourse instance returns. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int FEAT_NOT
public static final int FEAT_ACTIVITY
public static final int FEAT_OBJECT
public static final int FEAT_WORKING_PLACE
public static final int FEAT_OTHER
public static final int FEAT_ALL
public static final java.lang.String TYPE_NP
public static final java.lang.String TYPE_PP
Constructor Detail |
public SirDiscourse(java.lang.String fileName, boolean isProfile)
Method Detail |
public java.lang.String getFileName()
public void setFileName(java.lang.String fileName)
public boolean isProfile()
public char getPosCategory()
public void setPosCategory(char cat)
public boolean isCompoundBaseMerging()
public void setCompoundBaseMerging(boolean merge)
public boolean isIgnoreIrrelevantClauses()
public void setIgnoreIrrelevantClauses(boolean ignoreIrrelevantClauses)
ignoreIrrelevantClauses
- The ignoreIrrelevantClauses to set.public int getOnlyNegativeProfFeatures()
public void setOnlyNegativeProfFeatures(int onlyNegativeProfFeatures)
public int getOnlyPositiveProfFeatures()
public void setOnlyPositiveProfFeatures(int onlyPositiveProfFeatures)
onlyPositiveProfFeatures
- The onlyPositiveProfFeatures to set.public int getNumberOfWords()
public int getNumberOfSentences()
public int getNumberOfWordsInSentences()
public int getNumberOfVerbNodes()
public int getNumberOfWordsInVerbNodes()
public int getNumberOfIrrelevantClauses()
public int getNumberOfUnsurelyIrrelevantClauses()
public int getNumberOfSurelyIrrelevantClauses()
public int getNumberOfPositiveProfessionalFeatures()
public int getNumberOfNegativeProfessionalFeatures()
public int getNumberOfProfessionalActivity()
public int getNumberOfProfessionalObject()
public int getNumberOfProfessionalPlace()
public int getNumberOfOtherProfessionalCategory()
public int getNumberOfOpinionWords()
public int getNumberOfPositiveOpinionWords()
public int getNumberOfNegativeOpinionWords()
public int getNumberOfNeutralOpinionWords()
public int getNumberOfStrongOpinionWords()
public java.util.ArrayList getWordList()
public java.util.ArrayList getBaseList()
public java.util.ArrayList getConstituentList(java.lang.String t)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |