Skip to content

Commit

Permalink
Change gr_attributes conf file to new rule syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
LFDM committed Jul 5, 2014
1 parent a97ab1f commit b127f04
Showing 1 changed file with 64 additions and 28 deletions.
92 changes: 64 additions & 28 deletions app/static/configs/morph/gr_attributes.json
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,17 @@
"postag" : "3"
}
},
"dependencies" : {
"if" : {
"pos" : [ "verb" ]
"rules" : [
{
"if" : {
"pos" : "verb",
"mood" : "*"
},
"unless" : {
"mood" : "part"
}
}
}
]
},
"num" : {
"long" : "Number",
Expand Down Expand Up @@ -177,11 +183,13 @@
"tense" : {
"long" : "Tense",
"short" : "tense",
"dependencies" : {
"if" : {
"pos" : [ "verb", "part" ]
"rules" : [
{
"if" : {
"pos" : "verb"
}
}
},
],
"values" : {
"pr" : {
"long" : "present",
Expand Down Expand Up @@ -223,11 +231,13 @@
"mood" : {
"long" : "Mood",
"short" : "mood",
"dependencies" : {
"if" : {
"pos" : [ "verb", "part" ]
"rules" : [
{
"if" : {
"pos" : "verb"
}
}
},
],
"values" : {
"ind" : {
"long" : "indicative",
Expand Down Expand Up @@ -264,11 +274,13 @@
"voice" : {
"long" : "Voice",
"short" : "voice",
"dependencies" : {
"if" : {
"pos" : [ "verb", "part" ]
"rules" : [
{
"if" : {
"pos" : "verb"
}
}
},
],
"values" : {
"act" : {
"long" : "active",
Expand Down Expand Up @@ -300,11 +312,19 @@
"gend" : {
"long" : "gender",
"short" : "gend",
"dependencies" : {
"if" : {
"pos" : [ "part", "art", "noun", "adj", "pron", "nrl" ]
"rules" : [
{
"if" : {
"pos" : [ "art", "noun", "adj", "pron", "nrl" ]
}
},
{
"if" : {
"pos" : "verb",
"mood" : "part"
}
}
},
],
"values" : {
"masc" : {
"long" : "masculine",
Expand All @@ -326,11 +346,19 @@
"case" : {
"long" : "Casus",
"short" : "case",
"dependencies" : {
"if" : {
"pos" : [ "part", "art", "noun", "adj", "pron", "nrl" ]
"rules" : [
{
"if" : {
"pos" : [ "art", "noun", "adj", "pron", "nrl" ]
}
},
{
"if" : {
"pos" : "verb",
"mood" : "part"
}
}
},
],
"values" : {
"nom" : {
"long" : "nominative",
Expand Down Expand Up @@ -367,11 +395,19 @@
"degree" : {
"long" : "Degree",
"short" : "degree",
"dependencies" : {
"if" : {
"pos" : [ "part", "adj" ]
"rules" : [
{
"if" : {
"pos" : "adj"
}
},
{
"if" : {
"pos" : "verb",
"mood" : "part"
}
}
},
],
"values" : {
"pos" : {
"long" : "positive",
Expand Down

0 comments on commit b127f04

Please sign in to comment.