Linguatools English Collocations

FREEMIUM
Door petapro | Bijgewerkt 12 days ago | Text Analysis
Populariteit

8.2 / 10

Latency

268ms

Serviceniveau

100%

Health Check

N/A

Terug naar alle discussies

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.

Doe mee aan de discussie - voeg hieronder een opmerking toe

Log in / Schrij u in om nieuwe opmerkingen te plaatsen