-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
reparse individual non-parsed words after full sentence (#94)
* had to std:: here to make it compile * Reparse individual non-parsed words after full sentence mitigates #80 We splice in the outputQueueReparsed instead of just replacing in case the output rule changes the number of LU's output. * Tests for reparse #80 * Note to self (don't edit run_tests.py)
- Loading branch information
Showing
5 changed files
with
81 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
^ja<cnjcoo>/ja<cnjcoo>$ ^Jämtlánda<np><top><sg><gen><@→N>/Jämtlánnda<np><top><sg><gen><@→N>$ ^regiovdna<n><sem_plc><sg><gen><@→P>/regiåvnnå<n><sem_plc><sg><gen><@→P>$ ^dáfus<post><@ADVL>/gáktuj<post><@ADVL>$^.<sent>/.<sent>$ |
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 @@ | ||
^ja<cnjcoo>$ ^Jämtlánnda<np><sg><gen>$ ^regiåvnnå<n><sg><gen>$ ^gáktuj<post>$^.<sent>$ |
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,42 @@ | ||
!!!!!!!!!!!!!!! | ||
!! ATTRIBUTE CATEGORIES | ||
!!!!!!!!!!!!!!! | ||
|
||
function = "@→N" "@→P" "@ADVL" ; | ||
number = sg du pl ; | ||
case = acc nom gen loc ine ela com ess ill ; | ||
|
||
!!!!!!!!!!!!!!! | ||
!! OUTPUT PATTERNS | ||
!!!!!!!!!!!!!!! | ||
|
||
NP: _.number.case.function ; | ||
PP: _ ; | ||
|
||
Name: _.number.case.function ; | ||
N: _.number.case.function ; | ||
n: <n>.number.case; | ||
|
||
post: _ ; | ||
|
||
np: <np>.number.case ; | ||
|
||
|
||
!!!!!!!!!!!!!!! | ||
!! REDUCTION RULES | ||
!!!!!!!!!!!!!!! | ||
|
||
N -> "N:n" %n { %1 } ; | ||
|
||
Name -> "N:np" %np { %1 } | ||
| "NP:N Name" N %Name {1 _ %2 } !gonagas Harald | ||
| "NP:N Name" np %Name {1 _ %2 } ! | ||
| "NP:N Name" Name %N {1 _ %2 } ! ! Verdens Gang aviisii | ||
; | ||
|
||
NP -> "NP: N" %N { %1 } ; | ||
|
||
|
||
PP -> "PP N post" N %post { 1 _ %2 } | ||
| "lone post" %post { 1 } | ||
; |
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