Type: | Package |
Title: | Lexicons for Portuguese Text Analysis |
Version: | 0.1.0 |
Description: | Provides easy access for sentiment lexicons for those who want to do text analysis in Portuguese texts. As of now, two Portuguese lexicons are available: 'SentiLex-PT02' and 'OpLexicon' (v2.1 and v3.0). |
License: | GPL-2 | file LICENSE |
Encoding: | UTF-8 |
LazyData: | true |
RoxygenNote: | 6.0.1 |
Depends: | R(≥ 2.10.0) |
NeedsCompilation: | no |
Packaged: | 2017-10-23 23:04:20 UTC; sillas |
Author: | Sillas Gonzaga [aut, cre] |
Maintainer: | Sillas Gonzaga <sillas.gonzaga@gmail.com> |
Repository: | CRAN |
Date/Publication: | 2017-10-24 10:24:58 UTC |
get_word_sentiment
Description
Lookup word or term in datasets available on lexiconPT
Usage
get_word_sentiment(word)
Arguments
word |
character. |
Value
A list of all datasets available on lexiconPT filtered by the inputed word.
Examples
{
get_word_sentiment("cantar")
}
OpLexicon V2.1
Description
OpLexicon is a sentiment lexicon for the Portuguese language. Please see SOUZA and VIEIRA (2012) and SOUZA et al. (2012) for its complete reference and documentation.
Usage
oplexicon_v2.1
Format
A data frame with 30677 rows and 3 variables:
term
character. The word or term.
type
character. Grammar classification of the word or term.
polarity
integer. Numeric classification of the polarity or sentiment. It can only assume the values of -1, 0, and 1
Source
http://ontolp.inf.pucrs.br/Recursos/downloads-OpLexicon.php
OpLexicon V3.0
Description
OpLexicon is a sentiment lexicon for the Portuguese language. Please see SOUZA and VIEIRA (2012) and SOUZA et al. (2012) for its complete reference and documentation.
Usage
oplexicon_v3.0
Format
A data frame with 32191 rows and 4 variables:
term
character. The word of term. It also includes emoticons.
type
character. The type of the term.
polarity
integer. Numeric classification of the polarity or sentiment.
polarity_revision
character. Was the polarity obtained manually (A) or automatically (C)?
Source
http://ontolp.inf.pucrs.br/Recursos/downloads-OpLexicon.php
SentiLex-PT02
Description
A sentiment lexicon designed for the extraction of sentiment and opinion about human entities in Portuguese texts. Please see SILVA, CARVALHO, COSTA and SARMENTO (2010) for its complete reference and documentation.
Usage
sentiLex_lem_PT02
Format
A data frame with 7014 rows and 5 variables:
term
character The word of term.
grammar_category
character. The grammar classification of the term.
polarity
double. Numeric classification of the polarity or sentiment.
polarity_target
character. Polarity target. It can be N0 (subject), N1 (complement) or N2 (no documentation was found for what it means).
polarity_classification
character. Was the polarity obtained manually (MAN) or automatically (JALC)?.
Source
Mário J. Silva, Paula Carvalho, Carlos Costa, Luís Sarmento, Automatic Expansion of a Social Judgment Lexicon for Sentiment Analysis Technical Report. TR 10-08. University of Lisbon, Faculty of Sciences, LASIGE, December 2010. doi: 10455/6694