Skip to content

Commit

Permalink
Added a couple missing Freeling tags to the system; one to the actual…
Browse files Browse the repository at this point in the history
… inflectional rules and another to just be mapped to an existing one
  • Loading branch information
olzama committed May 29, 2023
1 parent cf6ffa5 commit f00433a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions inflr.tdl
Original file line number Diff line number Diff line change
Expand Up @@ -859,6 +859,10 @@ ncfs00a :=
%suffix (ncfs00a ncfs00a)
n_fem-sg_ilr.

ncfs00v :=
%suffix (ncfs00v ncfs00v)
n_fem-sg_ilr.

ncfp00a :=
%suffix (ncfp00a ncfp00a)
n_fem-pl_ilr.
Expand Down
3 changes: 3 additions & 0 deletions lexicon.tdl
Original file line number Diff line number Diff line change
Expand Up @@ -125296,6 +125296,9 @@ slash_pt := pt_-_hyphn_native_le &
; may need to be revisited.
doublehyphen_pt := pt_-_hyphn_native_le &
[ STEM < "--" > ].

triplehyphen_pt := pt_-_hyphn_native_le &
[ STEM < "---" > ].

lhyphen_pt := pt_-_lhyphn_native_le &
[ STEM < "-" > ].
Expand Down
2 changes: 1 addition & 1 deletion util/override_freeling.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

# Freeling tags to override and replace by other tags
TAGS = {'I': 'AQ0MS00', 'DP1MPP': 'AP0MP1P', 'AQVMP00':'AQ0MP00',
'DP1MSP': 'AP0MS1P', 'DP1FPP': 'AP0FP1P', 'DP1FSP': 'AP0FS1P', 'AQ00000':'AQ0000'}
'DP1MSP': 'AP0MS1P', 'DP1FPP': 'AP0FP1P', 'DP1FSP': 'AP0FS1P', 'AQVFS00': 'AQ0FS00'}

REPLACE_LEMMA_AND_TAG = {'ladra': {'lemma': 'ladrar', 'tag':'VMIP3S0'}, 'dió': {'lemma': 'dar', 'tag': 'VMIS3S0'},
'dios': {'lemma': 'dios', 'tag': 'NCMS000'},
Expand Down

0 comments on commit f00433a

Please sign in to comment.