Skip to content

How to we apply loadDictionaryIMDB() to the function analyzeSentiment? #1

@ElenaOS97

Description

@ElenaOS97

Hi! I cannot apply loadDictionaryIMDB() to the function analyzeSentiment. My code now is as follows: sentiment = analyzeSentiment(corpus, rules=list("Sentiment"=list(ruleLinearModel, loadDictionaryIMDB())))

I get the following message: Error in rule[[1]](x, rule[[2:length(rule)]]) : Rule does not support dictionary type

How can I solve this issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions