Sha256: d5322ec4f632d85f4f809546325ec7b780a98eb34d8e7946f2c8e2427544e4c4
Contents?: true
Size: 1.03 KB
Versions: 5
Compression:
Stored size: 1.03 KB
Contents
# coding=utf-8 __author__ = 'Josu Bermudez <josu.bermudez@deusto.es>' from ..lambdas import list_checker no_ner = "O" other = "MISC" person = list_checker(("PERSON", "PER")) organization = list_checker(("ORG", "ORGANIZATION")) # NE types that denotes mention mention_ner = list_checker(("PERSON", "NORP", "FACILITY", "ORGANIZATION", "GPE", "NML", "LOCATION", "PRODUCT", "EVENT", "WORK OF ART", "LAW", "LANGUAGE", "DATE", "TIME")) # NE types that must be filtered from mention candidates no_mention_ner = list_checker(("PERCENT", "MONEY", "QUANTITY", "CARDINAL","ORDINAL", "DATE")) # NE tags that denotes animacy inanimate = list_checker(("FACILITY", "NORP", "LOCATION", "LOC", "PRODUCT", "EVENT", "ORGANIZATION", "ORG", "WORK OF ART", "LAW", "LANGUAGE", "DATE", "TIME", "PERCENT", "MONEY", "NUMBER", "QUANTITY", "ORDINAL", "CARDINAL", "MISC", "VEH", "FAC", "GPE", "WEA", "NML")) animate = person # NE tags for persons all = lambda x: mention_ner(x) or no_mention_ner(x)
Version data entries
5 entries across 5 versions & 1 rubygems