(token, phrase_config=None)
| 262 | return [] |
| 263 | |
| 264 | def get_acomp_phrases_from_token(token, phrase_config=None): |
| 265 | if hasattr(token, "children"): |
| 266 | for child in token.children: |
| 267 | if child.dep_ == "prep": |
| 268 | phrases = [f"{token.text} {ph}" for ph in get_prep_phrases_from_token(child, phrase_config=phrase_config)] |
| 269 | |
| 270 | if not phrases: |
| 271 | return [token.text] |
| 272 | |
| 273 | return phrases |
| 274 | |
| 275 | return [token.text] |
| 276 | |
| 277 | def get_verb_phrases_from_token(token, phrase_config=None): |
| 278 | if token.pos_ == "VERB" or token.pos_ == "AUX": |
no test coverage detected