Skip to content

Snippet to filter keywords with stop words #25

@ablaette

Description

@ablaette

When I run the following code, there are still lots of stop words. How to get rid of these?

library(polmineR)
library(openxlsx)

afd <- corpus("GERMAPARL2") %>% 
  subset(speaker_party == "AfD") %>% 
  subset(protocol_lp == "19") %>% 
  subset(p_type == "speech")

afd_count <- afd %>%
  polmineR::count(p_attribute = "word")

gparl <- corpus("GERMAPARL2") %>% 
  subset(protocol_lp == "19") %>% 
  subset(p_type == "speech") %>% 
  polmineR::count(p_attribute = "word")

keywords_afd <- features(x = afd_count, y = gparl)

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