Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate new field to add unlimited morphological or syntactic features #11

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions install_deps.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#! /bin/bash

BASE_DIR=$(cd $(dirname "$0"); pwd)
LOCAL_DEPS_DIR=${BASE_DIR}/deps/local

Expand Down
1 change: 1 addition & 0 deletions semeval2014_data/scripts/augment_with_companion_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
word,
lemma,
pos, #predicted_pos
"_", #Morph or Syntatic Features by Corentin Ribeyre
head,
deprel,
top,
Expand Down
10 changes: 10 additions & 0 deletions src/semantic_parser/SemanticFeatureTemplates.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,13 @@ struct SemanticFeatureTemplateArc {
MW, /* modifier word [useless in unlabeled parsing] */
HWP, /* head word and POS */
MWP, /* modifier word and POS [useless in unlabeled parsing] */
HF, /* Corentin Ribeyre: Head Feature */
HWF, /* Corentin Ribeyre: Head Feature and Word */
HPF, /* Corentin Ribeyre: Head feature and POS */
MF, /* Corentin Ribeyre: Arg feature */
MWF, /* Corentin Ribeyre: Arg feature and word */
MPF, /* Corentin Ribeyre: Arg features and POS */
HF_MF, /* Head feature + Arg feature */
HP_MP, /* head POS, modifier POS */
HP_MW, /* head POS, modifier word */
HP_MWP, /* head POS, modifier word and POS */
Expand Down Expand Up @@ -268,6 +275,9 @@ struct SemanticFeatureTemplateSibling {
HP_MW_SW, /* head POS, mod word, sib word */
HW_MW_SW, /* head word, mod word, sib word */

HF_MF_SF, /* Corentin Ribeyre: head morph, mod morph, sib morph */
MF_SF, /* Corentin Ribeyre: mod morph, sib morph */

HP_MP, /* head POS, mod POS */
HW_MP, /* head word, mod POS */
HP_MW, /* head POS, mod word */
Expand Down
Loading