-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added missing parts of refactoring json for phrase_translate
- Loading branch information
Showing
5 changed files
with
78 additions
and
74 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
src/crkeng/resources/phrase_translate/noun_wordform_to_phrase.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
[ | ||
["+N", null, 0], | ||
["+A", null, 0], | ||
["+I", null, 0], | ||
["+D", null, 0], | ||
# Number | ||
["+Sg", "TagMap.COPY_TAG_NAME", 1], | ||
["+Pl", "TagMap.COPY_TAG_NAME", 1], | ||
["+Obv", "TagMap.COPY_TAG_NAME", 1], | ||
["+Loc", "TagMap.COPY_TAG_NAME", 1], | ||
["+Distr", "TagMap.COPY_TAG_NAME", 1], | ||
# Diminutive | ||
["+Dim", "TagMap.COPY_TAG_NAME", 2], | ||
["+Der/Dim", "Dim+", 2], | ||
# Possessives | ||
["+Px1Sg", "TagMap.COPY_TAG_NAME", 3], | ||
["+Px2Sg", "TagMap.COPY_TAG_NAME", 3], | ||
["+Px3Sg", "TagMap.COPY_TAG_NAME", 3], | ||
["+Px1Pl", "TagMap.COPY_TAG_NAME", 3], | ||
["+Px2Pl", "TagMap.COPY_TAG_NAME", 3], | ||
["+Px12Pl", "TagMap.COPY_TAG_NAME", 3], # Maybe needs to be recoded with 12 -> 21 | ||
["+Px3Pl", "TagMap.COPY_TAG_NAME", 3], | ||
["+Px4Sg/Pl", "TagMap.COPY_TAG_NAME", 3], | ||
["+PxX", "PxXPl+", 3] | ||
] |
46 changes: 46 additions & 0 deletions
46
src/crkeng/resources/phrase_translate/verb_wordform_to_phrase.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
[ | ||
["+V", null, 0], | ||
["+TA", null, 0], | ||
["+AI", null, 0], | ||
["+II", null, 0], | ||
["+TI", null, 0], | ||
# Tense/Aspect | ||
["PV/ki+", "Prt+", 1], # Preterite aka simple past | ||
[["PV/ki+", "+Ind"], "Prt+", 1], # Preterite aka simple past | ||
[["+Fut", "+Cond"], "Cond+", 1], # Future conditional | ||
[["+Imp", "+Imm"], "Imm+", 1], # Immediate imperative | ||
[["+Imp", "+Del"], "Del+", 1], # Delayed imperative | ||
[["PV/wi+", "+Ind"], "Fut+", 1], # Future | ||
["PV/wi+", "Fut+", 1], # Also accept PV/wi without indicative as future | ||
[["PV/e+", "+Cnj"], null, 1], # conjunctive marker | ||
# Note that these crk features as disjoint, but both are needed for the eng feature | ||
[["PV/ka+", "+Ind"], "Def+", 1], | ||
[["PV/ka+", "+Cnj"], "Inf+", 1], | ||
[["PV/ta+", "+Cnj"], "Inf+", 1], # future definite | ||
["+Ind", "Prs+", 1], | ||
["TagMap.DEFAULT", "Prs+", 1], # default to present tense | ||
# Person - Subject | ||
["+1Sg", "TagMap.COPY_TAG_NAME", 2], | ||
["+2Sg", "TagMap.COPY_TAG_NAME", 2], | ||
["+3Sg", "TagMap.COPY_TAG_NAME", 2], | ||
["+1Pl", "TagMap.COPY_TAG_NAME", 2], | ||
["+12Pl", "21Pl+", 2], | ||
["+2Pl", "TagMap.COPY_TAG_NAME", 2], | ||
["+3Pl", "TagMap.COPY_TAG_NAME", 2], | ||
["+4Sg/Pl", "TagMap.COPY_TAG_NAME", 2], | ||
["+5Sg/Pl", "TagMap.COPY_TAG_NAME", 2], | ||
["+X", "XPl+", 2], | ||
# Person - Object | ||
["+1SgO", "TagMap.COPY_TAG_NAME", 3], | ||
["+2SgO", "TagMap.COPY_TAG_NAME", 3], | ||
["+3SgO", "TagMap.COPY_TAG_NAME", 3], | ||
["+1PlO", "TagMap.COPY_TAG_NAME", 3], | ||
["+12PlO", "21PlO+", 3], | ||
["+2PlO", "TagMap.COPY_TAG_NAME", 3], | ||
["+3PlO", "TagMap.COPY_TAG_NAME", 3], | ||
["+4Pl", "TagMap.COPY_TAG_NAME", 3], | ||
["+4Sg", "TagMap.COPY_TAG_NAME", 3], | ||
["+4Sg/PlO", "TagMap.COPY_TAG_NAME", 3], | ||
["+5Sg/PlO", "TagMap.COPY_TAG_NAME", 3], | ||
["+XO", "XPlO+", 3] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters