forked from GitHub/gf-rgl
- NP: added field isLight in order to push negation behind light nps;
this had been done in gf-3.9 using field isPron, but isPron is now
used to put accusative pronoun before dative pronoun. Removed field
adv: adverbial extensions cannot be extracted (todo: also for CN).
Reduced isLight*isPron to w:Weight with 3 values: WPron, WLight, WHeavy.
- added param Control and field ctrl:Control to classify V2V-verbs into
subject- and object-contol verbs, use ctrl to make reflexives agree
with subject resp. object in VPSlash, and refine ComplSlash.
- Verb: new versions of ComplVV, SlashV2V and SlashVV to give better
(nested) infinitives (extracting infzu and correcting object order).
a) nested SlashVV doesn't work properly;
b) SlashV2VNP may have to be commented out to prevent a stack overflow
when compiling.
Intended change of SlashV2VNP in tests/german/TestLangGer could not
be tested due to size problems with the compiler.
- VP: changed field a1 : Polarity => Str to a1:Str to collect the adverbs
coming before negation, using (negation : Polarity => Str) in mkClause.
Use objCtrl:Bool instead of missingAdv to let reflexives agree with object.
- ResGer: insertObjNP reorganized, infzuVP added
- DictVerbsGer: some corrections (helft -> hilft, *sprecht -> *spricht)
- Some potential passive rules in tests/german/TestLangGer|Eng
- ExtraGer needs to be cleaned up with repect to the modified mkClause.
31 lines
2.0 KiB
Plaintext
31 lines
2.0 KiB
Plaintext
-- Use gf --run < obj-order.gfs or gf> eh object-order.gfs
|
|
--? echo "loading TestLangGer.gf and TestLangEng.gf ..."
|
|
--i TestLangGer.gf TestLangEng.gf
|
|
-- Remark: examples in examples.eng.txt need only LangEng,LangGer
|
|
? echo "parsing from examples.eng and writing trees to examples.eng.tmp:"
|
|
rf -file=examples.eng.txt -lines | p -lang=Eng | l -lang="Eng,Ger" -treebank | wf -file=examples.eng.tmp
|
|
? echo "diff examples.eng.out examples.eng.tmp"
|
|
? diff examples.eng.out examples.eng.tmp
|
|
? echo "parsing from examples.eng and writing source and translation to examples.eng2ger.tmp:"
|
|
rf -file=examples.eng.txt -lines | p -lang=Eng | l -lang="Eng,Ger" | wf -file=examples.eng2ger.tmp
|
|
? echo "diff examples.eng2ger.out examples.eng2ger.tmp"
|
|
? diff examples.eng2ger.out examples.eng2ger.tmp
|
|
|
|
? echo "extracting positive, negative and dubious examples from examples.txt ..."
|
|
? grep accept examples.txt | sed s/\ --\ [\*a-zA-Z\(\)\ \.\:\,\;\<\>\\_0-4\\+\\?\\-]*// | cpif examples.pos.txt
|
|
? grep reject examples.txt | sed s/\ --\ [\*a-zA-Z\(\)\ \.\:\,\;\<\>\\_0-4\\+\\?\\-]*// | cpif examples.neg.txt
|
|
? grep dubious examples.txt | sed s/\ --\ [\*a-zA-Z\(\)\ \.\:\,\;\<\>\\_0-4\\+\\?\\-]*// | cpif examples.dub.txt
|
|
|
|
? echo "parsing negative examples ...; storing trees in examples.neg.tmp ..."
|
|
rf -lines -file="examples.neg.txt" | p -lang=Ger | l -treebank -lang="Ger,Eng" | wf -file="examples.neg.tmp"
|
|
? echo "diff examples.neg.out examples.neg.tmp:"
|
|
? diff examples.neg.out examples.neg.tmp
|
|
? echo "parsing dubious examples ...; storing trees in examples.dub.tmp ..."
|
|
rf -lines -file="examples.dub.txt" | p -lang=Ger | l -treebank -lang="Ger,Eng" | wf -file="examples.dub.tmp"
|
|
? echo "diff examples.dub.out examples.dub.tmp:"
|
|
? diff examples.dub.out examples.dub.tmp
|
|
? echo "parsing positive examples ...; storing trees in examples.pos.tmp ..."
|
|
rf -lines -file="examples.pos.txt" | p -lang=Ger | l -treebank -lang="Ger,Eng" | wf -file="examples.pos.tmp"
|
|
? echo "diff examples.pos.out examples.pos.tmp:"
|
|
? diff examples.pos.out examples.pos.tmp
|