NPExtractor¶
-
class
lexnlp.extract.en.utils.NPExtractor(grammar=None)¶ Bases:
objectAttributes Summary
Methods Summary
Attributes Documentation
-
exception_pos= ['IN', 'CC']¶
-
exception_sym= ['&', 'and', 'of']¶
-
sym_with_space= ['(', '&']¶
-
sym_without_space= '!"#$%\')*+,-./:;<=>?@[\\]^_`{|}~'¶
Methods Documentation
-
cleanup_leaves(leaves)¶
-
get_np(text)¶
-
get_tokenizer()¶
-
join(np_items)¶
-
sep(n, current_pos, last_pos)¶
-
static
strip_np(np)¶
-