java.io.Serializable
, CapabilitiesHandler
, CapabilitiesIgnorer
, CommandlineRunnable
, OptionHandler
, RevisionHandler
public class TweetToSentiStrengthFeatureVector extends TweetToFeatureVector
@@Article{ThelwallBP12, Title = {Sentiment strength detection for the social web.}, Author = {Thelwall, Mike and Buckley, Kevan and Paltoglou, Georgios}, Journal = {Journal of the American Society for Information Science and Technology}, Year = {2012}, Number = {1}, Pages = {163-173}, Volume = {63} }
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
LEXICON_FOLDER_NAME |
Default path to where lexicons are stored.
|
static java.lang.String |
SENTISTRENGTH_FOLDER_NAME |
The path of SentiStrength.
|
Constructor | Description |
---|---|
TweetToSentiStrengthFeatureVector() |
Modifier and Type | Method | Description |
---|---|---|
java.io.File |
getLangFolder() |
|
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.
|
java.lang.String |
globalInfo() |
Returns a string describing this filter.
|
static void |
main(java.lang.String[] args) |
Main method for testing this class.
|
void |
setLangFolder(java.io.File langFolder) |
Sets the folder with the SentiStrength files.
|
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 static java.lang.String LEXICON_FOLDER_NAME
public static java.lang.String SENTISTRENGTH_FOLDER_NAME
public java.lang.String globalInfo()
globalInfo
in class SimpleFilter
public TechnicalInformation getTechnicalInformation()
@OptionMetadata(displayName="language folder", description="The folder containing SentiStrength Files. Change it for using a language different from English.", commandLineParamName="L", commandLineParamSynopsis="-L <string>", displayOrder=6) public java.io.File getLangFolder()
public void setLangFolder(java.io.File langFolder)
langFolder
- the folder with the SentiStrength files.public static void main(java.lang.String[] args)
args
- should contain arguments to the filter: use -h for help