Skip to content

Commit

Permalink
Merge pull request #54 from allenai/query-mode-qmod-missmatch
Browse files Browse the repository at this point in the history
Query mode qmod missmatch
  • Loading branch information
aryehgigi committed Sep 20, 2022
2 parents ef7579d + fc6c6c2 commit c7081d8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pybart/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -964,7 +964,7 @@ def per_type_weak_modified_verb_reconstruction(sentence, matches, type_, convert
tokens=[
Token(id="old_root", spec=[
Field(field=FieldNames.TAG, value=verb_pos), Field(field=FieldNames.LEMMA, value=evidential_list)]),
Token(id="new_root", spec=[Field(field=FieldNames.TAG, value=noun_pos + adj_pos, in_sequence=False)]),
Token(id="new_root", spec=[Field(field=FieldNames.TAG, value=noun_pos + adj_pos + ["CD"], in_sequence=False)]),
],
edges=[
Edge(child="new_root", parent="old_root", label=[HasLabelFromList(["xcomp", "ccomp"])])
Expand Down Expand Up @@ -1592,7 +1592,7 @@ def remove_funcs(conversions, enhanced, enhanced_plus_plus, enhanced_extra, remo
conversions.pop(func_name, None)
if query_mode:
for func_name in list(conversions.keys()):
if func_name not in ['extra_nmod_advmod_reconstruction', 'extra_copula_reconstruction', 'extra_evidential_basic_reconstruction', 'extra_evidential_xcomp_reconstruction', 'extra_inner_weak_modifier_verb_reconstruction', 'extra_aspectual_reconstruction', 'eud_correct_subj_pass', 'eud_conj_info', 'eud_prep_patterns', 'eudpp_process_simple_2wp', 'eudpp_process_complex_2wp', 'eudpp_process_3wp', 'eudpp_demote_quantificational_modifiers']:
if func_name not in ['extra_nmod_advmod_reconstruction', 'extra_copula_reconstruction', 'extra_evidential_basic_reconstruction', 'extra_evidential_xcomp_reconstruction', 'extra_inner_weak_modifier_verb_reconstruction', 'extra_aspectual_reconstruction', 'eud_correct_subj_pass', 'eud_conj_info', 'eud_prep_patterns', 'eudpp_process_simple_2wp', 'eudpp_process_complex_2wp', 'eudpp_process_3wp', 'eudpp_demote_quantificational_modifiers_3w', 'eudpp_demote_quantificational_modifiers_2w', 'eudpp_demote_quantificational_modifiers_det']:
conversions.pop(func_name, None)
if funcs_to_cancel:
for func_to_cancel in funcs_to_cancel:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="pybart-nlp",
version="3.3.0",
version="3.3.1",
author="Aryeh Tiktinsky",
author_email="aryehgigi@gmail.com",
description="python converter from UD-tree to BART-graph representations",
Expand Down

0 comments on commit c7081d8

Please sign in to comment.