Linguatools English Collocations

免费增值
通过 petapro | 已更新 8 days ago | Text Analysis
人气

8.3 / 10

延迟

316ms

服务等级

100%

Health Check

N/A

返回所有讨论

Part Of Speech For Query String

Rapid account: Karov Inal
KarovInal
2 years ago

Hello!
Is it possible to filter collocation by part of speech of query string?
I know you have a “relation” parameter, but it doesn’t work well for me. For example, I need to get all collocation with the “boost” word, where “boost” is a verb. But if I use “V:obj:N” relation, I’ll receive collocations like, “to boost morale” (boost as a verb) and “to receive boost” (boost as a noun).
So it would be awesome if you’ll add an extra parameter, like “query_pos” which automatically filters all collocations by a part of speech for query string 😃

Rapid account: Petapro
petapro Commented 2 years ago

Hello KarovInal,

we added a new endpoint of the collocation API. It’s called “collocations v2 ( + pos)”. There is an additional parameter called “pos”. It allows to filter for part of speech.
Note that some relation names changed. See the allowed values in the description of the test endpoint.

Rapid account: Petapro
petapro Commented 2 years ago

Hello KarovInal,

we are currently working on a new version of the collocation API.
In the future version you will be able to restrict your query to the position of the collocation (e.g. search “boost” in left hand side of V:obj:N, or in left hand side of N:nn:N).

We expect to release the new version by the end of September.

加入讨论 - 在下面添加评论:

登录/注册以发布新的评论