-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from chartes/update-tooling-and-pathing
Update tooling and pathing
- Loading branch information
Showing
79 changed files
with
1,458 additions
and
84 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*.tar | ||
*.csv | ||
*.logs |
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,3 @@ | ||
env | ||
output-* | ||
*memory.csv |
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,2 @@ | ||
virtualenv env -p python3 | ||
env/bin/pip install -r requirements.txt |
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,5 @@ | ||
rm -r output-* | ||
env/bin/protogenie build config-lemma-pos.xml --output output-lemma-pos -t .98 -d .02 -e 0 --verbose | ||
env/bin/protogenie concat config-lemma-pos.xml output-lemma-pos | ||
env/bin/protogenie build config-morph.xml --output output-morph -t .98 -d .02 -e 0 --verbose | ||
env/bin/protogenie concat config-morph.xml output-morph |
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,2 @@ | ||
rm -r output-test | ||
env/bin/protogenie build config-test.xml --output output-test -n --verbose |
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,44 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<?xml-model href="https://hipster-philology.github.io/protogenie/protogenie/schema.rng" | ||
schematypens="http://relaxng.org/ns/structure/1.0"?> | ||
<config xmlns:xi="http://www.w3.org/2001/XInclude"> | ||
<default-header> | ||
<header type="explicit"> | ||
<key map-to="token">form</key> | ||
<key>lemma</key> | ||
<key>POS</key> | ||
</header> | ||
</default-header> | ||
<memory path="lemma-pos.memory.csv"/> | ||
<output column_marker="TAB"> | ||
<header name="order"> | ||
<key>token</key> | ||
<key>lemma</key> | ||
<key>POS</key> | ||
</header> | ||
</output> | ||
<postprocessing> | ||
<skip matchPattern="token" source="token"/> | ||
<skip matchPattern="OUT" source="POS"/> | ||
<toolbox name="RomanNumeral"> | ||
<applyTo source="token"> | ||
<target>lemma</target> | ||
<target>token</target> | ||
</applyTo> | ||
</toolbox> | ||
<replacement matchPattern="[01]" replacementPattern="1"> | ||
<applyTo source="token"> | ||
<target>lemma</target> | ||
<target>token</target> | ||
</applyTo> | ||
</replacement> | ||
<replacement matchPattern="[2-9]|\d\d+" replacementPattern="2"> | ||
<applyTo source="token"> | ||
<target>lemma</target> | ||
<target>token</target> | ||
</applyTo> | ||
</replacement> | ||
</postprocessing> | ||
<xi:include href="./corpora/without-morph.xml" parse="xml" /> | ||
<xi:include href="./corpora/with-morph.xml" parse="xml" /> | ||
</config> |
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,60 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<?xml-model href="https://hipster-philology.github.io/protogenie/protogenie/schema.rng" | ||
schematypens="http://relaxng.org/ns/structure/1.0"?> | ||
<config xmlns:xi="http://www.w3.org/2001/XInclude"> | ||
<default-header> | ||
<header type="explicit"> | ||
<key map-to="token">form</key> | ||
<key>lemma</key> | ||
<key>POS</key> | ||
<key>morph</key> | ||
</header> | ||
</default-header> | ||
<memory path="morph.memory.csv"/> | ||
<output column_marker="TAB"> | ||
<header name="order"> | ||
<key>token</key> | ||
<key>lemma</key> | ||
<key>POS</key> | ||
<key>MODE</key> | ||
<key>TEMPS</key> | ||
<key>PERS</key> | ||
<key>NOMB</key> | ||
<key>GENRE</key> | ||
<key>CAS</key> | ||
<key>DEGRE</key> | ||
<key>SPEC</key> | ||
</header> | ||
</output> | ||
<postprocessing> | ||
<skip matchPattern="token" source="token"/> | ||
<skip matchPattern="OUT" source="POS"/> | ||
<toolbox name="RomanNumeral"> | ||
<applyTo source="token"> | ||
<target>lemma</target> | ||
<target>token</target> | ||
</applyTo> | ||
</toolbox> | ||
<replacement matchPattern="[01]" replacementPattern="1"> | ||
<applyTo source="token"> | ||
<target>lemma</target> | ||
<target>token</target> | ||
</applyTo> | ||
</replacement> | ||
<replacement matchPattern="[2-9]|\d\d+" replacementPattern="2"> | ||
<applyTo source="token"> | ||
<target>lemma</target> | ||
<target>token</target> | ||
</applyTo> | ||
</replacement> | ||
<disambiguation matchPattern="(MODE\=[\w-]+)\|?" new-column="MODE" source="morph" default="MODE=x" /> | ||
<disambiguation matchPattern="(TEMPS\=[\w-]+)\|?" new-column="TEMPS" source="morph" default="TEMPS=x" /> | ||
<disambiguation matchPattern="(PERS\.\=[\w-]+)\|?" new-column="PERS" source="morph" default="PERS.=x" /> | ||
<disambiguation matchPattern="(NOMB\.\=[\w-]+)\|?" new-column="NOMB" source="morph" default="NOMB.=x" /> | ||
<disambiguation matchPattern="(GENRE\=[\w-]+)\|?" new-column="GENRE" source="morph" default="GENRE=x" /> | ||
<disambiguation matchPattern="(CAS\=[\w-]+)\|?" new-column="CAS" source="morph" default="CAS=x" /> | ||
<disambiguation matchPattern="(DEGRE\=[\w-]+)\|?" new-column="DEGRE" source="morph" default="DEGRE=x" /> | ||
<disambiguation matchPattern="(SPEC\=[\w-]+)\|?" new-column="SPEC" source="morph" default="SPEC=x" /> | ||
</postprocessing> | ||
<xi:include href="./corpora/with-morph.xml" parse="xml" /> | ||
</config> |
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,68 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<?xml-model href="https://hipster-philology.github.io/protogenie/protogenie/schema.rng" | ||
schematypens="http://relaxng.org/ns/structure/1.0"?> | ||
<config xmlns:xi="http://www.w3.org/2001/XInclude"> | ||
<default-header> | ||
<header type="explicit"> | ||
<key map-to="token">form</key> | ||
<key>lemma</key> | ||
<key>POS</key> | ||
<key>morph</key> | ||
</header> | ||
</default-header> | ||
<memory path="morph.memory.csv"/> | ||
<output column_marker="TAB"> | ||
<header name="order"> | ||
<key>token</key> | ||
<key>lemma</key> | ||
<key>POS</key> | ||
<key>MODE</key> | ||
<key>TEMPS</key> | ||
<key>PERS</key> | ||
<key>NOMB</key> | ||
<key>GENRE</key> | ||
<key>CAS</key> | ||
<key>DEGRE</key> | ||
<key>SPEC</key> | ||
</header> | ||
</output> | ||
<postprocessing> | ||
<skip matchPattern="token" source="token"/> | ||
<skip matchPattern="OUT" source="POS"/> | ||
<toolbox name="RomanNumeral"> | ||
<applyTo source="token"> | ||
<target>lemma</target> | ||
<target>token</target> | ||
</applyTo> | ||
</toolbox> | ||
<replacement matchPattern="[01]" replacementPattern="1"> | ||
<applyTo source="token"> | ||
<target>lemma</target> | ||
<target>token</target> | ||
</applyTo> | ||
</replacement> | ||
<replacement matchPattern="[2-9]|\d\d+" replacementPattern="2"> | ||
<applyTo source="token"> | ||
<target>lemma</target> | ||
<target>token</target> | ||
</applyTo> | ||
</replacement> | ||
<disambiguation matchPattern="(MODE\=[\w-]+)\|?" new-column="MODE" source="morph" default="MODE=x" /> | ||
<disambiguation matchPattern="(TEMPS\=[\w-]+)\|?" new-column="TEMPS" source="morph" default="TEMPS=x" /> | ||
<disambiguation matchPattern="(PERS\.\=[\w-]+)\|?" new-column="PERS" source="morph" default="PERS.=x" /> | ||
<disambiguation matchPattern="(NOMB\.\=[\w-]+)\|?" new-column="NOMB" source="morph" default="NOMB.=x" /> | ||
<disambiguation matchPattern="(GENRE\=[\w-]+)\|?" new-column="GENRE" source="morph" default="GENRE=x" /> | ||
<disambiguation matchPattern="(CAS\=[\w-]+)\|?" new-column="CAS" source="morph" default="CAS=x" /> | ||
<disambiguation matchPattern="(DEGRE\=[\w-]+)\|?" new-column="DEGRE" source="morph" default="DEGRE=x" /> | ||
<disambiguation matchPattern="(SPEC\=[\w-]+)\|?" new-column="SPEC" source="morph" default="SPEC=x" /> | ||
</postprocessing> | ||
<corpora> | ||
<corpus path="../test/*.tsv" column_marker="TAB"> | ||
<splitter name="regexp"> | ||
<option matchPattern="PONfrt" source="POS"/> | ||
<option matchPattern="Ref\." source="lemma"/> | ||
</splitter> | ||
<header type="default" /> | ||
</corpus> | ||
</corpora> | ||
</config> |
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,13 @@ | ||
<corpora> | ||
<corpus path="../tsv/LemmaPosMorph/PONfrt/*.tsv" column_marker="TAB"> | ||
<splitter name="regexp"> | ||
<option matchPattern="PONfrt" source="POS"/> | ||
<option matchPattern="Ref\." source="lemma"/> | ||
</splitter> | ||
<header type="default" /> | ||
</corpus> | ||
<corpus path="../tsv/LemmaPosMorph/EmptyLine/*.tsv" column_marker="TAB"> | ||
<splitter name="empty_line" /> | ||
<header type="default" /> | ||
</corpus> | ||
</corpora> |
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,9 @@ | ||
<corpora> | ||
<corpus path="../tsv/LemmaPos/*.tsv" column_marker="TAB"> | ||
<splitter name="regexp"> | ||
<option matchPattern="PONfrt" source="POS"/> | ||
<option matchPattern="Ref\." source="lemma"/> | ||
</splitter> | ||
<header type="default" /> | ||
</corpus> | ||
</corpora> |
Oops, something went wrong.