Class ActorsAnnotator
- java.lang.Object
-
- io.outofprintmagazine.nlp.pipeline.annotators.AbstractAnnotator
-
- io.outofprintmagazine.nlp.pipeline.annotators.AbstractPosAnnotator
-
- io.outofprintmagazine.nlp.pipeline.annotators.AbstractContextualAnnotator
-
- io.outofprintmagazine.nlp.pipeline.annotators.ActorsAnnotator
-
- All Implemented Interfaces:
edu.stanford.nlp.pipeline.Annotator
,IOOPAnnotator
public class ActorsAnnotator extends AbstractContextualAnnotator implements edu.stanford.nlp.pipeline.Annotator, IOOPAnnotator
-
-
Field Summary
-
Fields inherited from class io.outofprintmagazine.nlp.pipeline.annotators.AbstractPosAnnotator
tags
-
Fields inherited from class io.outofprintmagazine.nlp.pipeline.annotators.AbstractAnnotator
dictionaryPOS, parameterStore, punctuationMarks, scorer, serializer
-
Fields inherited from interface edu.stanford.nlp.pipeline.Annotator
DEFAULT_REQUIREMENTS, STANFORD_CLEAN_XML, STANFORD_COLUMN_DATA_CLASSIFIER, STANFORD_COREF, STANFORD_COREF_MENTION, STANFORD_DEPENDENCIES, STANFORD_DETERMINISTIC_COREF, STANFORD_DOCDATE, STANFORD_ENTITY_MENTIONS, STANFORD_GENDER, STANFORD_KBP, STANFORD_LEMMA, STANFORD_LINK, STANFORD_MWT, STANFORD_NATLOG, STANFORD_NER, STANFORD_OPENIE, STANFORD_PARSE, STANFORD_POS, STANFORD_QUOTE, STANFORD_QUOTE_ATTRIBUTION, STANFORD_REGEXNER, STANFORD_RELATION, STANFORD_SENTIMENT, STANFORD_SSPLIT, STANFORD_TOKENIZE, STANFORD_TOKENSREGEX, STANFORD_TRUECASE, STANFORD_UD_FEATURES
-
-
Constructor Summary
Constructors Constructor Description ActorsAnnotator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class
getAnnotationClass()
protected ContextualAnnotation
getConcreteAnnotation()
String
getDescription()
Class
getEntityAnnotationClass()
Set<Class<? extends edu.stanford.nlp.ling.CoreAnnotation>>
requires()
protected void
scoreCoreGender(edu.stanford.nlp.ling.CoreLabel token, ActorAnnotation characterAnnotation)
protected void
scoreDocument(edu.stanford.nlp.pipeline.CoreDocument document, ContextualAnnotation annotation)
protected void
scoreMyersBriggs(edu.stanford.nlp.pipeline.CoreSentence sentence, ActorAnnotation characterAnnotation)
protected void
scoreOOPGender(edu.stanford.nlp.ling.CoreLabel token, ActorAnnotation characterAnnotation)
protected void
scoreQuotes(edu.stanford.nlp.pipeline.CoreDocument document, String canonicalEntityName, ActorAnnotation characterAnnotation)
protected void
scoreSentence(edu.stanford.nlp.pipeline.CoreDocument document, edu.stanford.nlp.pipeline.CoreSentence sentence, ContextualAnnotation characterAnnotation)
protected void
scoreThumbnails(ContextualAnnotation actor)
protected void
scoreToken(edu.stanford.nlp.pipeline.CoreDocument document, edu.stanford.nlp.ling.CoreLabel token, ContextualAnnotation annotation)
-
Methods inherited from class io.outofprintmagazine.nlp.pipeline.annotators.AbstractContextualAnnotator
annotate, score, scoreAdjectives, scoreAdverbs, scoreDependencies, scoreDependenciesDep, scoreDependenciesGov, scoreNounGroups, scoreNouns, scoreSubAnnotation, scoreVerbGroups, scoreVerbs, scoreWikipediaGloss, serialize, serializeAggregateDocument
-
Methods inherited from class io.outofprintmagazine.nlp.pipeline.annotators.AbstractPosAnnotator
appendTagsFromFile, getTags, scoreLemma, scoreLemma, scoreTag, scoreTag, scoreToken, scoreToken, setTags
-
Methods inherited from class io.outofprintmagazine.nlp.pipeline.annotators.AbstractAnnotator
addToScoreList, addToScoreMap, getContextWords, getParameterStore, getScorer, getSerializer, hasPunctuationMark, init, isDictionaryWord, isPunctuationMark, requirementsSatisfied, setScorer, setSerializer, toAlphaNumeric
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface edu.stanford.nlp.pipeline.Annotator
annotate, requirementsSatisfied, unmount
-
Methods inherited from interface io.outofprintmagazine.nlp.pipeline.annotators.IOOPAnnotator
init, score, serialize, serializeAggregateDocument
-
-
-
-
Method Detail
-
getConcreteAnnotation
protected ContextualAnnotation getConcreteAnnotation()
- Specified by:
getConcreteAnnotation
in classAbstractContextualAnnotator
-
requires
public Set<Class<? extends edu.stanford.nlp.ling.CoreAnnotation>> requires()
- Specified by:
requires
in interfaceedu.stanford.nlp.pipeline.Annotator
- Overrides:
requires
in classAbstractContextualAnnotator
-
getAnnotationClass
public Class getAnnotationClass()
- Specified by:
getAnnotationClass
in interfaceIOOPAnnotator
- Specified by:
getAnnotationClass
in classAbstractAnnotator
-
getEntityAnnotationClass
public Class getEntityAnnotationClass()
- Specified by:
getEntityAnnotationClass
in classAbstractContextualAnnotator
-
scoreDocument
protected void scoreDocument(edu.stanford.nlp.pipeline.CoreDocument document, ContextualAnnotation annotation) throws InstantiationException, IllegalAccessException, ClassNotFoundException, IOException, URISyntaxException, com.flickr4java.flickr.FlickrException
- Overrides:
scoreDocument
in classAbstractContextualAnnotator
- Throws:
InstantiationException
IllegalAccessException
ClassNotFoundException
IOException
URISyntaxException
com.flickr4java.flickr.FlickrException
-
scoreToken
protected void scoreToken(edu.stanford.nlp.pipeline.CoreDocument document, edu.stanford.nlp.ling.CoreLabel token, ContextualAnnotation annotation) throws InstantiationException, IllegalAccessException, ClassNotFoundException, IOException
- Overrides:
scoreToken
in classAbstractContextualAnnotator
- Throws:
InstantiationException
IllegalAccessException
ClassNotFoundException
IOException
-
scoreQuotes
protected void scoreQuotes(edu.stanford.nlp.pipeline.CoreDocument document, String canonicalEntityName, ActorAnnotation characterAnnotation) throws InstantiationException, IllegalAccessException, ClassNotFoundException, IOException
-
scoreCoreGender
protected void scoreCoreGender(edu.stanford.nlp.ling.CoreLabel token, ActorAnnotation characterAnnotation)
-
scoreOOPGender
protected void scoreOOPGender(edu.stanford.nlp.ling.CoreLabel token, ActorAnnotation characterAnnotation)
-
scoreThumbnails
protected void scoreThumbnails(ContextualAnnotation actor) throws IOException, URISyntaxException, com.flickr4java.flickr.FlickrException
- Overrides:
scoreThumbnails
in classAbstractContextualAnnotator
- Throws:
IOException
URISyntaxException
com.flickr4java.flickr.FlickrException
-
scoreSentence
protected void scoreSentence(edu.stanford.nlp.pipeline.CoreDocument document, edu.stanford.nlp.pipeline.CoreSentence sentence, ContextualAnnotation characterAnnotation) throws InstantiationException, IllegalAccessException, ClassNotFoundException, IOException
- Overrides:
scoreSentence
in classAbstractContextualAnnotator
- Throws:
InstantiationException
IllegalAccessException
ClassNotFoundException
IOException
-
scoreMyersBriggs
protected void scoreMyersBriggs(edu.stanford.nlp.pipeline.CoreSentence sentence, ActorAnnotation characterAnnotation)
-
getDescription
public String getDescription()
- Specified by:
getDescription
in interfaceIOOPAnnotator
-
-