word co-occurrence frequency per paragraph

Asked 2 years ago, Updated 2 years ago, 59 views

I'd like to calculate the co-occurrence frequency of a particular word from the article in the newspaper. Can I set the frequency at which level (e.g., sentence by sentence, paragraph by sentence, sentence by sentence, etc.) in quanteda's fcm()?

Or, please let me know if there is another package with that setting.

r

2022-09-30 19:44

1 Answers

I have never used that package, but help is available below.
https://quanteda.io/reference/fcm.html
It seems to be a function that counts co-occurrence expressions in the entire sentence or within a specified window width.
Therefore, you can divide the sentences according to the level you want, such as sentences and paragraphs, and apply fcm() individually.


2022-09-30 19:44

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.