Description Usage Arguments Value Author(s) References See Also Examples
This function analyzes the text for words that correlate with complimentary or derogatory reviews and comments, to give an overall score for how positive or negative the text is about its subject.
1 | text2sentiment(text, session=getCurlHandle())
|
text |
A short piece of writing, from a sentence to a paragraph in length for best results. |
session |
This is the CURLHandle object giving the structure for the options and that will process the command. For curlMultiPerform, this is an object of class code MultiCURLHandle-class. |
score |
A number representing the estimated sentiment, from -5 (very negative) to +5 (very positive). |
Ryan Elmore
http://www.datasciencetoolkit.org/developerdocs#text2sentiment
curlPerform
,
getCurlHandle
,
dynCurlReader
1 2 3 4 | ## Not run:
text2sentiment("I love this hotel!")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.