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 ClassgetAnnotationClass()protected ContextualAnnotationgetConcreteAnnotation()StringgetDescription()ClassgetEntityAnnotationClass()Set<Class<? extends edu.stanford.nlp.ling.CoreAnnotation>>requires()protected voidscoreCoreGender(edu.stanford.nlp.ling.CoreLabel token, ActorAnnotation characterAnnotation)protected voidscoreDocument(edu.stanford.nlp.pipeline.CoreDocument document, ContextualAnnotation annotation)protected voidscoreMyersBriggs(edu.stanford.nlp.pipeline.CoreSentence sentence, ActorAnnotation characterAnnotation)protected voidscoreOOPGender(edu.stanford.nlp.ling.CoreLabel token, ActorAnnotation characterAnnotation)protected voidscoreQuotes(edu.stanford.nlp.pipeline.CoreDocument document, String canonicalEntityName, ActorAnnotation characterAnnotation)protected voidscoreSentence(edu.stanford.nlp.pipeline.CoreDocument document, edu.stanford.nlp.pipeline.CoreSentence sentence, ContextualAnnotation characterAnnotation)protected voidscoreThumbnails(ContextualAnnotation actor)protected voidscoreToken(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:
getConcreteAnnotationin classAbstractContextualAnnotator
-
requires
public Set<Class<? extends edu.stanford.nlp.ling.CoreAnnotation>> requires()
- Specified by:
requiresin interfaceedu.stanford.nlp.pipeline.Annotator- Overrides:
requiresin classAbstractContextualAnnotator
-
getAnnotationClass
public Class getAnnotationClass()
- Specified by:
getAnnotationClassin interfaceIOOPAnnotator- Specified by:
getAnnotationClassin classAbstractAnnotator
-
getEntityAnnotationClass
public Class getEntityAnnotationClass()
- Specified by:
getEntityAnnotationClassin classAbstractContextualAnnotator
-
scoreDocument
protected void scoreDocument(edu.stanford.nlp.pipeline.CoreDocument document, ContextualAnnotation annotation) throws InstantiationException, IllegalAccessException, ClassNotFoundException, IOException, URISyntaxException, com.flickr4java.flickr.FlickrException- Overrides:
scoreDocumentin classAbstractContextualAnnotator- Throws:
InstantiationExceptionIllegalAccessExceptionClassNotFoundExceptionIOExceptionURISyntaxExceptioncom.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:
scoreTokenin classAbstractContextualAnnotator- Throws:
InstantiationExceptionIllegalAccessExceptionClassNotFoundExceptionIOException
-
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:
scoreThumbnailsin classAbstractContextualAnnotator- Throws:
IOExceptionURISyntaxExceptioncom.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:
scoreSentencein classAbstractContextualAnnotator- Throws:
InstantiationExceptionIllegalAccessExceptionClassNotFoundExceptionIOException
-
scoreMyersBriggs
protected void scoreMyersBriggs(edu.stanford.nlp.pipeline.CoreSentence sentence, ActorAnnotation characterAnnotation)
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfaceIOOPAnnotator
-
-