Class ContextualAnnotation
- java.lang.Object
-
- io.outofprintmagazine.nlp.pipeline.ContextualAnnotation
-
- Direct Known Subclasses:
ActorAnnotation
,SettingAnnotation
public abstract class ContextualAnnotation extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,Map<String,BigDecimal>>
Attributes
protected String
CanonicalName
protected List<BigDecimal>
CoreNlpSentiment
protected BigDecimal
CoreNlpSentimentAvg
protected int
FirstAppearance
protected BigDecimal
Importance
protected int
LastAppearance
protected List<String>
Thumbnails
protected List<BigDecimal>
VaderSentiment
protected BigDecimal
VaderSentimentAvg
protected List<String>
WikipediaGlosses
-
Constructor Summary
Constructors Constructor Description ContextualAnnotation()
-
Method Summary
-
-
-
Field Detail
-
CanonicalName
protected String CanonicalName
-
FirstAppearance
protected int FirstAppearance
-
LastAppearance
protected int LastAppearance
-
Importance
protected BigDecimal Importance
-
VaderSentiment
protected List<BigDecimal> VaderSentiment
-
CoreNlpSentiment
protected List<BigDecimal> CoreNlpSentiment
-
Attributes
protected Map<String,Map<String,BigDecimal>> Attributes
-
VaderSentimentAvg
protected BigDecimal VaderSentimentAvg
-
CoreNlpSentimentAvg
protected BigDecimal CoreNlpSentimentAvg
-
-
Method Detail
-
getCanonicalName
public String getCanonicalName()
-
setCanonicalName
public void setCanonicalName(String canonicalName)
-
getFirstAppearance
public int getFirstAppearance()
-
setFirstAppearance
public void setFirstAppearance(int firstAppearance)
-
getLastAppearance
public int getLastAppearance()
-
setLastAppearance
public void setLastAppearance(int lastAppearance)
-
getImportance
public BigDecimal getImportance()
-
setImportance
public void setImportance(BigDecimal importance)
-
addImportance
public void addImportance(int score)
-
getVaderSentiment
public List<BigDecimal> getVaderSentiment()
-
addVaderSentiment
public void addVaderSentiment(BigDecimal vaderSentiment)
-
getCoreNlpSentiment
public List<BigDecimal> getCoreNlpSentiment()
-
addCoreNlpSentiment
public void addCoreNlpSentiment(BigDecimal coreNlpSentiment)
-
getAttributes
public Map<String,Map<String,BigDecimal>> getAttributes()
-
getAttribute
public Map<String,BigDecimal> getAttribute(String subAttributeName)
-
setVaderSentiment
public void setVaderSentiment(List<BigDecimal> vaderSentiment)
-
setCoreNlpSentiment
public void setCoreNlpSentiment(List<BigDecimal> coreNlpSentiment)
-
getVaderSentimentAvg
public BigDecimal getVaderSentimentAvg()
-
setVaderSentimentAvg
public void setVaderSentimentAvg(BigDecimal vaderSentimentAvg)
-
setVaderSentimentAvg
public void setVaderSentimentAvg()
-
getCoreNlpSentimentAvg
public BigDecimal getCoreNlpSentimentAvg()
-
setCoreNlpSentimentAvg
public void setCoreNlpSentimentAvg(BigDecimal coreNlpSentimentAvg)
-
setCoreNlpSentimentAvg
public void setCoreNlpSentimentAvg()
-
setAttributes
public void setAttributes(Map<String,Map<String,BigDecimal>> attributes)
-
-