alphazwest
alphazwest

Reputation: 4450

Collocations with spaCy

I've been using NLTK for finding collocations, or n-grams, and have recently discovered the spaCy module for NLP. I've only just begun familiarizing myself with it and have, thus far, seen little mention for supported collocation functions.

Can spaCy be used to find collocations directly?

I have read through the documentation, but haven't seen mention.

Upvotes: 8

Views: 3391

Answers (1)

Vinicius Woloszyn
Vinicius Woloszyn

Reputation: 314

Collocations detection also can be based on dependency parsing, but spaCy do not have support to do it. You can use spaCy as part of an approach, but not directly.

may you also consider gensim: https://radimrehurek.com/gensim/models/phrases.html

I hope it can help you

Upvotes: 6

Related Questions