本文介绍了与 spaCy 的搭配的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用 NLTK 来查找搭配或 n-gram,并且最近发现了用于 NLP 的 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.

spaCy 可以直接用来查找搭配吗?

Can spaCy be used to find collocations directly?

我已经通读了文档,但没有看到提及.

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

推荐答案

搭配检测也可以基于依赖解析,但 spaCy 不支持这样做.您可以将 spaCy 用作方法的一部分,但不能直接使用.

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.

你也可以考虑一下gensim:https://radimrehurek.com/gensim/models/phrases.html

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

希望能帮到你

这篇关于与 spaCy 的搭配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-13 13:39