java.io.Serializable
, CapabilitiesHandler
, CapabilitiesIgnorer
, CommandlineRunnable
, OptionHandler
, RevisionHandler
public class ASA extends DistantSupervisionSyntheticFilter
CLUSTPREFIX, LEXICON_FOLDER_NAME, RESOURCES_FOLDER_NAME, UNIPREFIX
Constructor | Description |
---|---|
ASA() |
Modifier and Type | Method | Description |
---|---|---|
void |
annotatePhase(Instances inputFormat) |
Annotates tweets according using the polarity lexicon
|
int |
getNumNegInstances() |
|
int |
getNumPosInstances() |
|
TechnicalInformation |
getTechnicalInformation() |
Returns an instance of a TechnicalInformation object, containing
detailed information about the technical background of this class,
e.g., paper reference or book this class is based on.
|
int |
getTweetsPerCentroid() |
|
java.lang.String |
globalInfo() |
|
boolean |
isExclusiveSets() |
|
static void |
main(java.lang.String[] args) |
Main method for testing this class.
|
void |
setExclusiveSets(boolean exclusiveSets) |
|
void |
setNumNegInstances(int numNegInstances) |
|
void |
setNumPosInstances(int numPosInstances) |
|
void |
setTweetsPerCentroid(int tweetsPerCentroid) |
calculateDocVec, getLexicon, getMinAttDocs, getPolarityAttName, getPolarityAttNegValName, getPolarityAttPosValName, getRandomSeed, getWordClustFile, isCreateClustAtts, isCreateWordAtts, mapTargetInstance, setCreateClustAtts, setCreateWordAtts, setLexicon, setMinAttDocs, setPolarityAttName, setPolarityAttNegValName, setPolarityAttPosValName, setRandomSeed, setWordClustFile
batchFilterFile, debugTipText, doNotCheckCapabilitiesTipText, filterFile, getCapabilities, getCopyOfInputFormat, getDebug, getDoNotCheckCapabilities, getOutputFormat, getRevision, isFirstBatchDone, isNewBatch, isOutputFormatDefined, makeCopies, makeCopy, mayRemoveInstanceAfterFirstBatchDone, numPendingOutput, output, outputPeek, postExecution, preExecution, run, runFilter, setDebug, setDoNotCheckCapabilities, toString, useFilter, wekaStaticWrapper
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
batchFinished, input
setInputFormat
allowAccessToFullInputFormat, getCapabilities, getOptions, getStemmer, getStopwordsHandler, getTextIndex, getTokenizer, isReduceRepeatedLetters, isStandarizeUrlsUsers, isToLowerCase, listOptions, setOptions, setReduceRepeatedLetters, setStandarizeUrlsUsers, setStemmer, setStopwordsHandler, setTextIndex, setTokenizer, setToLowerCase
public TechnicalInformation getTechnicalInformation()
public java.lang.String globalInfo()
globalInfo
in class SimpleFilter
public void annotatePhase(Instances inputFormat)
inputFormat
- the input Instances@OptionMetadata(displayName="tweetsPerCentroid", description="The number of tweets to average in each generated instance. \t default: 10", commandLineParamName="A", commandLineParamSynopsis="-A <int>", displayOrder=13) public int getTweetsPerCentroid()
public void setTweetsPerCentroid(int tweetsPerCentroid)
@OptionMetadata(displayName="numPosInstances", description="The number of positive instances to generate. \t default: 1000", commandLineParamName="npos", commandLineParamSynopsis="-npos <int>", displayOrder=14) public int getNumPosInstances()
public void setNumPosInstances(int numPosInstances)
@OptionMetadata(displayName="numNegInstances", description="The number of negative instances to generate. \t default: 1000", commandLineParamName="nneg", commandLineParamSynopsis="-nneg <int>", displayOrder=15) public int getNumNegInstances()
public void setNumNegInstances(int numNegInstances)
@OptionMetadata(displayName="exclusiveSets", description="True for dicarding tweets containing both positive and negative words. False for adding these tweets into both the positive and negative sets from which tweets are sampled.\t default False", commandLineParamIsFlag=true, commandLineParamName="E", commandLineParamSynopsis="-E", displayOrder=16) public boolean isExclusiveSets()
public void setExclusiveSets(boolean exclusiveSets)
public static void main(java.lang.String[] args)
args
- should contain arguments to the filter: use -h for help