Sha256: 5a384aa317e0f3c31567f0099449d65f4ea7a440ef52bf011a449e6689cbe254

Contents?: true

Size: 989 Bytes

Versions: 5

Compression:

Stored size: 989 Bytes

Contents

# coding=utf-8

__author__ = 'Josu Bermudez <josu.bermudez@deusto.es>'


from ..lambdas import equality_checker, list_checker

# INNER
_simple = "S"
_inverted_question = "SQ"
_subordinated = "SBAR"
_direct_question = "SBARQ"
_inverted_declarative = "SINV"
_noun_phrase = "NP"
_wh_noun_phrase = "WHNP"

_interjection = "INTJ"
_particle = "PRT"
_verb_phrase = "VP"
_location_constituent = "NML"

#
clauses = list_checker((_simple, _subordinated, _direct_question, _inverted_declarative, _inverted_question))
mention_constituents = list_checker((_noun_phrase, _wh_noun_phrase))
ner_constituent = list_checker((_location_constituent,))
noun_phrases = equality_checker(_noun_phrase)
verb_phrases = equality_checker(_verb_phrase)

particle_constituents = equality_checker(_particle)
past_participle_verb = equality_checker("VBN")

interjections = equality_checker(_interjection)
simple_or_sub_phrase = list_checker((_simple, _subordinated))
root= list_checker(("root", "top", "ROOT", "TOP"))



Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
opener-coreference-base-2.1.1 core/corefgraph/resources/tagset/penntreebank_constituent.py
opener-coreference-base-2.1.0 core/corefgraph/resources/tagset/penntreebank_constituent.py
opener-coreference-base-2.0.3 core/corefgraph/resources/tagset/penntreebank_constituent.py
opener-coreference-base-2.0.2 core/corefgraph/resources/tagset/penntreebank_constituent.py
opener-coreference-base-2.0.1 core/corefgraph/resources/tagset/penntreebank_constituent.py