Class DocumentCtx
- java.lang.Object
-
- edu.upf.taln.dri.module.rhetclassifier.feats.ctx.DocumentCtx
-
public class DocumentCtx extends Object
Hold sentence-context for rhetorical sentence classification.
-
-
Constructor Summary
Constructors Constructor Description DocumentCtx(gate.Document gateDoc, String classNameRhet, String classNameAspect, String classNameMainCit, String classNameSecondaryCit, Double classNameSummary, String agreementRhet, String agreementAspect, String agreementMainCit, String agreementSecondaryCit, String agreementSummary, Map<String,Double> rawTF_map, Double maxTFvalue, Map<String,Double> term_DF_map)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Double
computeAverageTFIDFofTerms(DocumentCtx ctx, gate.Annotation sentence)
static Double
computeTFIDFsimilarityOfSentences(DocumentCtx ctx, gate.Annotation sentence1, gate.Annotation sentence2)
String
getAgreementAspect()
String
getAgreementMainCit()
String
getAgreementRhet()
String
getAgreementSecondaryCit()
String
getAgreementSummary()
String
getClassNameAspect()
String
getClassNameMainCit()
String
getClassNameRhet()
String
getClassNameSecondaryCit()
Double
getClassNameSummary()
gate.Document
getGateDoc()
Double
getInstanceWeight()
Double
getMaxTFvalue()
Map<String,Double>
getRawTF_map()
Map<String,Double>
getTerm_DF_map()
void
setInstanceWeight(Double instanceWeight)
-
-
-
Constructor Detail
-
DocumentCtx
public DocumentCtx(gate.Document gateDoc, String classNameRhet, String classNameAspect, String classNameMainCit, String classNameSecondaryCit, Double classNameSummary, String agreementRhet, String agreementAspect, String agreementMainCit, String agreementSecondaryCit, String agreementSummary, Map<String,Double> rawTF_map, Double maxTFvalue, Map<String,Double> term_DF_map)
-
-
Method Detail
-
getGateDoc
public gate.Document getGateDoc()
-
getClassNameRhet
public String getClassNameRhet()
-
getClassNameAspect
public String getClassNameAspect()
-
getClassNameMainCit
public String getClassNameMainCit()
-
getClassNameSecondaryCit
public String getClassNameSecondaryCit()
-
getClassNameSummary
public Double getClassNameSummary()
-
getAgreementRhet
public String getAgreementRhet()
-
getAgreementAspect
public String getAgreementAspect()
-
getAgreementMainCit
public String getAgreementMainCit()
-
getAgreementSecondaryCit
public String getAgreementSecondaryCit()
-
getAgreementSummary
public String getAgreementSummary()
-
getMaxTFvalue
public Double getMaxTFvalue()
-
getInstanceWeight
public Double getInstanceWeight()
-
setInstanceWeight
public void setInstanceWeight(Double instanceWeight)
-
computeAverageTFIDFofTerms
public static Double computeAverageTFIDFofTerms(DocumentCtx ctx, gate.Annotation sentence)
-
computeTFIDFsimilarityOfSentences
public static Double computeTFIDFsimilarityOfSentences(DocumentCtx ctx, gate.Annotation sentence1, gate.Annotation sentence2)
-
-