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

Function _enabled

data_preprocessing/utils.py:204–205  ·  view source on GitHub ↗
(phrase_config, attr)

Source from the content-addressed store, hash-verified

202 include_compound: bool = True
203
204def _enabled(phrase_config, attr):
205 return not phrase_config or getattr(phrase_config, attr)
206
207def get_noun_phrases_from_token(token, phrase_config=None):
208 if token.pos_ == "NOUN" or token.pos_ == "PRON":

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected