MCPcopy Create free account
hub / github.com/debjitpaul/refiner / get_adjectives

Function get_adjectives

data_preprocessing/utils.py:407–415  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

405 return top_syns, top_ants
406
407def get_adjectives(text):
408 doc = nlp(text)
409 adjectives = set()
410
411 for token in doc:
412 if token.pos_ == "ADJ":
413 adjectives.add(token.text.lower())
414
415 return list(adjectives)

Callers 1

mainFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected