public class StopwordAnnotator extends Object implements edu.stanford.nlp.pipeline.Annotator, edu.stanford.nlp.ling.CoreAnnotation<edu.stanford.nlp.util.Pair<Boolean,Boolean>>
| Modifier and Type | Field and Description |
|---|---|
static String |
ANNOTATOR_CLASS
stopword annotator class name used in annotators property
|
static String |
IGNORE_STOPWORD_CASE
Property key to specify if stopword list is case insensitive
|
static String |
STOPWORDS_LIST
Property key to specify the comma delimited list of custom stopwords
|
DEFAULT_REQUIREMENTS, STANFORD_CLEAN_XML, STANFORD_COLUMN_DATA_CLASSIFIER, STANFORD_COREF, STANFORD_DEPENDENCIES, STANFORD_DETERMINISTIC_COREF, STANFORD_ENTITY_MENTIONS, STANFORD_GENDER, STANFORD_KBP, STANFORD_LEMMA, STANFORD_LINK, STANFORD_MENTION, STANFORD_NATLOG, STANFORD_NER, STANFORD_OPENIE, STANFORD_PARSE, STANFORD_POS, STANFORD_QUOTE, STANFORD_REGEXNER, STANFORD_RELATION, STANFORD_SENTIMENT, STANFORD_SSPLIT, STANFORD_TOKENIZE, STANFORD_TRUECASE, STANFORD_UD_FEATURES| Constructor and Description |
|---|
StopwordAnnotator() |
StopwordAnnotator(Properties props) |
StopwordAnnotator(String notUsed,
Properties props) |
| Modifier and Type | Method and Description |
|---|---|
void |
annotate(edu.stanford.nlp.pipeline.Annotation annotation) |
static org.apache.lucene.analysis.util.CharArraySet |
getStopWordList(org.apache.lucene.util.Version luceneVersion,
String stopwordList,
boolean ignoreCase) |
Class<edu.stanford.nlp.util.Pair<Boolean,Boolean>> |
getType() |
Set<Class<? extends edu.stanford.nlp.ling.CoreAnnotation>> |
requirementsSatisfied() |
Set<Class<? extends edu.stanford.nlp.ling.CoreAnnotation>> |
requires() |
public static final String ANNOTATOR_CLASS
public static final String STOPWORDS_LIST
public static final String IGNORE_STOPWORD_CASE
public StopwordAnnotator()
public StopwordAnnotator(String notUsed, Properties props)
public StopwordAnnotator(Properties props)
public void annotate(edu.stanford.nlp.pipeline.Annotation annotation)
annotate in interface edu.stanford.nlp.pipeline.Annotatorpublic Set<Class<? extends edu.stanford.nlp.ling.CoreAnnotation>> requirementsSatisfied()
requirementsSatisfied in interface edu.stanford.nlp.pipeline.Annotatorpublic Set<Class<? extends edu.stanford.nlp.ling.CoreAnnotation>> requires()
requires in interface edu.stanford.nlp.pipeline.Annotatorpublic static org.apache.lucene.analysis.util.CharArraySet getStopWordList(org.apache.lucene.util.Version luceneVersion,
String stopwordList,
boolean ignoreCase)
Copyright © 2017. All rights reserved.