I struggle finding equivalents for these languages and don't really understand how I am supposed to recode polarity_terms, polarity_negators, polarity_amplifiers, polarity_deamplifiers
Hi, I didn't understand the issue exactly. Can you provide more details?
if you want to have the same variables for Spanish language, you can create the vector of factors using: polarity_negators = as.factor( c("no son", "no pueden", "no podrían" ) )
And the datatable using: polarity_deamplifiers = data.table::data.table(term= c("no son", "no pueden", "no podrían" ), polarity = c(-1,-1,-1))
It is my first time using R so I don't understand much. I am struggling in finding the lexicons I should use in order to follow the same code as the example and have polarity_terms, polarity_negators, polarity_amplifiers, polarity_deamplifiers properly coded to move on to the next step.
I only found sentiment dictionaries for Spanish (only positive or negative terms) without the other factors. Do you have any idea how I should more from here ?
Hi, unfortunately I don't understand Spanish, my first search for negation words and amplifiers didn't lead to anything. Maybe someone who understands Spanish will find something useful on Spanish repositories.
For instance, a way to do this is to create them from scratch. If you understand Spanish you can create them manually. Otherwise you can save the English or French versions to a file and then translate them (not a good solution for important projects, but can be useful for a first version and to not stay blocked at this stage).