Skip to content
Snippets Groups Projects
Commit a41674f7 authored by Adam Radziszewski's avatar Adam Radziszewski
Browse files

a test for lex

parent cf29b4f7
Branches
No related merge requests found
import("prep-qub.lex", "qp")
match_rules(
apply(
match(
repeat(
equal(lex(lower(orth[0]), "qp"), "qub")
)
),
actions(mark(M, "QP"))
);
apply(
match(
equal(lex(lower(orth[0]), "qp"), ["prep"]),
inter(class[0], {noun,other})
),
actions(mark(M, "PrepNP"))
)
)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE cesAna SYSTEM "xcesAnaIPI.dtd">
<cesAna xmlns:xlink="http://www.w3.org/1999/xlink" version="1.0" type="lex disamb">
<chunkList>
<chunk>
<sentence>
<tok>
<orth>To</orth>
<lex><base>ten</base><ctag>adj</ctag></lex>
<lex><base>to</base><ctag>noun</ctag></lex>
<lex><base>to</base><ctag>other</ctag></lex>
<lex><base>to</base><ctag>qub</ctag></lex>
<lex><base>to</base><ctag>verb</ctag></lex>
<ann chan="QP">0</ann>
</tok>
<tok>
<orth>już</orth>
<lex><base>już</base><ctag>qub</ctag></lex>
<ann chan="QP" head="1">1</ann>
</tok>
<tok>
<orth>dziś</orth>
<lex><base>dziś</base><ctag>noun</ctag></lex>
<lex><base>dziś</base><ctag>qub</ctag></lex>
<ann chan="QP">1</ann>
</tok>
<tok>
<orth>wcale</orth>
<lex><base>wcale</base><ctag>qub</ctag></lex>
<ann chan="QP">1</ann>
</tok>
<tok>
<orth>nie</orth>
<lex><base>nie</base><ctag>other</ctag></lex>
<lex><base>nie</base><ctag>qub</ctag></lex>
<lex><base>on</base><ctag>other</ctag></lex>
<ann chan="QP">1</ann>
</tok>
<tok>
<orth>jest</orth>
<lex><base>być</base><ctag>verb</ctag></lex>
<ann chan="QP">0</ann>
</tok>
<tok>
<orth>śmieszne</orth>
<lex><base>śmieszny</base><ctag>adj</ctag></lex>
<ann chan="QP">0</ann>
</tok>
<ns/>
<tok>
<orth>!</orth>
<lex><base>!</base><ctag>interp</ctag></lex>
<ann chan="QP">0</ann>
</tok>
</sentence>
<sentence>
<tok>
<orth>To</orth>
<lex><base>ten</base><ctag>adj</ctag></lex>
<lex><base>to</base><ctag>noun</ctag></lex>
<lex><base>to</base><ctag>other</ctag></lex>
<lex><base>to</base><ctag>qub</ctag></lex>
<lex><base>to</base><ctag>verb</ctag></lex>
<ann chan="PrepNP">0</ann>
<ann chan="QP">0</ann>
</tok>
<tok>
<orth>dla</orth>
<lex><base>dla</base><ctag>other</ctag></lex>
<ann chan="PrepNP" head="1">1</ann>
<ann chan="QP">0</ann>
</tok>
<tok>
<orth>niego</orth>
<lex><base>on</base><ctag>other</ctag></lex>
<ann chan="PrepNP">1</ann>
<ann chan="QP">0</ann>
</tok>
<tok>
<orth>i</orth>
<lex><base>i</base><ctag>other</ctag></lex>
<lex><base>i</base><ctag>qub</ctag></lex>
<ann chan="PrepNP">0</ann>
<ann chan="QP">0</ann>
</tok>
<tok>
<orth>dla</orth>
<lex><base>dla</base><ctag>other</ctag></lex>
<ann chan="PrepNP" head="1">2</ann>
<ann chan="QP">0</ann>
</tok>
<tok>
<orth>nas</orth>
<lex><base>NASA</base><ctag>noun</ctag></lex>
<lex><base>my</base><ctag>other</ctag></lex>
<ann chan="PrepNP">2</ann>
<ann chan="QP">0</ann>
</tok>
<tok>
<orth>wręcz</orth>
<lex><base>wręcz</base><ctag>qub</ctag></lex>
<lex><base>wręczyć</base><ctag>verb</ctag></lex>
<ann chan="PrepNP">0</ann>
<ann chan="QP" head="1">1</ann>
</tok>
<tok>
<orth>nie</orth>
<lex><base>nie</base><ctag>other</ctag></lex>
<lex><base>nie</base><ctag>qub</ctag></lex>
<lex><base>on</base><ctag>other</ctag></lex>
<ann chan="PrepNP">0</ann>
<ann chan="QP">1</ann>
</tok>
<tok>
<orth>do</orth>
<lex><base>do</base><ctag>noun</ctag></lex>
<lex><base>do</base><ctag>other</ctag></lex>
<ann chan="PrepNP" head="1">3</ann>
<ann chan="QP">0</ann>
</tok>
<tok>
<orth>pomyślenia</orth>
<lex><base>pomyślenie</base><ctag>noun</ctag></lex>
<lex><base>pomyśleć</base><ctag>noun</ctag></lex>
<ann chan="PrepNP">3</ann>
<ann chan="QP">0</ann>
</tok>
<ns/>
<tok>
<orth>.</orth>
<lex><base>.</base><ctag>interp</ctag></lex>
<ann chan="PrepNP">0</ann>
<ann chan="QP">0</ann>
</tok>
</sentence>
</chunk>
</chunkList>
</cesAna>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE cesAna SYSTEM "xcesAnaIPI.dtd">
<cesAna xmlns:xlink="http://www.w3.org/1999/xlink" version="1.0" type="lex disamb">
<chunkList>
<chunk>
<sentence>
<tok>
<orth>To</orth>
<lex><base>ten</base><ctag>adj</ctag></lex>
<lex><base>to</base><ctag>noun</ctag></lex>
<lex><base>to</base><ctag>other</ctag></lex>
<lex><base>to</base><ctag>qub</ctag></lex>
<lex><base>to</base><ctag>verb</ctag></lex>
</tok>
<tok>
<orth>już</orth>
<lex><base>już</base><ctag>qub</ctag></lex>
</tok>
<tok>
<orth>dziś</orth>
<lex><base>dziś</base><ctag>noun</ctag></lex>
<lex><base>dziś</base><ctag>qub</ctag></lex>
</tok>
<tok>
<orth>wcale</orth>
<lex><base>wcale</base><ctag>qub</ctag></lex>
</tok>
<tok>
<orth>nie</orth>
<lex><base>nie</base><ctag>other</ctag></lex>
<lex><base>nie</base><ctag>qub</ctag></lex>
<lex><base>on</base><ctag>other</ctag></lex>
</tok>
<tok>
<orth>jest</orth>
<lex><base>być</base><ctag>verb</ctag></lex>
</tok>
<tok>
<orth>śmieszne</orth>
<lex><base>śmieszny</base><ctag>adj</ctag></lex>
</tok>
<ns/>
<tok>
<orth>!</orth>
<lex><base>!</base><ctag>interp</ctag></lex>
</tok>
</sentence>
<sentence>
<tok>
<orth>To</orth>
<lex><base>ten</base><ctag>adj</ctag></lex>
<lex><base>to</base><ctag>noun</ctag></lex>
<lex><base>to</base><ctag>other</ctag></lex>
<lex><base>to</base><ctag>qub</ctag></lex>
<lex><base>to</base><ctag>verb</ctag></lex>
</tok>
<tok>
<orth>dla</orth>
<lex><base>dla</base><ctag>other</ctag></lex>
</tok>
<tok>
<orth>niego</orth>
<lex><base>on</base><ctag>other</ctag></lex>
</tok>
<tok>
<orth>i</orth>
<lex><base>i</base><ctag>other</ctag></lex>
<lex><base>i</base><ctag>qub</ctag></lex>
</tok>
<tok>
<orth>dla</orth>
<lex><base>dla</base><ctag>other</ctag></lex>
</tok>
<tok>
<orth>nas</orth>
<lex><base>NASA</base><ctag>noun</ctag></lex>
<lex><base>my</base><ctag>other</ctag></lex>
</tok>
<tok>
<orth>wręcz</orth>
<lex><base>wręcz</base><ctag>qub</ctag></lex>
<lex><base>wręczyć</base><ctag>verb</ctag></lex>
</tok>
<tok>
<orth>nie</orth>
<lex><base>nie</base><ctag>other</ctag></lex>
<lex><base>nie</base><ctag>qub</ctag></lex>
<lex><base>on</base><ctag>other</ctag></lex>
</tok>
<tok>
<orth>do</orth>
<lex><base>do</base><ctag>noun</ctag></lex>
<lex><base>do</base><ctag>other</ctag></lex>
</tok>
<tok>
<orth>pomyślenia</orth>
<lex><base>pomyślenie</base><ctag>noun</ctag></lex>
<lex><base>pomyśleć</base><ctag>noun</ctag></lex>
</tok>
<ns/>
<tok>
<orth>.</orth>
<lex><base>.</base><ctag>interp</ctag></lex>
</tok>
</sentence>
</chunk>
</chunkList>
</cesAna>
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment