Skip to content

Commit

Permalink
[uk] dictionary update
Browse files Browse the repository at this point in the history
  • Loading branch information
arysin committed Dec 22, 2013
1 parent f838d09 commit 2d0dcfd
Show file tree
Hide file tree
Showing 10 changed files with 127 additions and 4 deletions.
1 change: 1 addition & 0 deletions languagetool-language-modules/uk/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
<directory>src/main/resources</directory>
<excludes>
<exclude>org/languagetool/resource/uk/src/**/*</exclude>
<exclude>org/languagetool/rules/uk/src/**/*</exclude>
</excludes>
</resource>
</resources>
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#/bin/sh

export PATH=$PATH:~/bin

WORD="$1"

if [ "$WORD" = "" ]; then
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#/bin/sh

export PATH=$PATH:~/bin

function encode() {
iconv -f utf-8 -t cp1251
# cat
Expand Down
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,14 @@ conj
dieprysl:imperf
dieprysl:imperf:bad
dieprysl:imperf:rev
dieprysl:imperf:v-u
dieprysl:perf
dieprysl:perf:bad
dieprysl:perf:rev
dieprysl:perf:v-u
dieprysl:rev:imperf
dieprysl:rev:imperf:bad
dieprysl:rev:imperf:v-u
dieprysl:rev:perf
dieprysl:rev:perf:bad
dieprysl:rev:perf:v-u
Expand Down Expand Up @@ -222,7 +224,6 @@ noun:p:v_zna:v-u
noun:pl:nv
noun:todo
noun:todo:bad
noun:todo:v-u
noun:v_dav
noun:v_mis
noun:v_oru
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ public final void testSynthesizeString() throws IOException {

//with regular expressions
assertEquals("[червоної]", Arrays.toString(
getSortedArray(synth.synthesize(dummyToken("червоний"), "adj:f:v_rod*", true))));
getSortedArray(synth.synthesize(dummyToken("червоний"), "adj:f:v_rod.*", true))));
assertEquals("[червоним, червоним, червоними, червоною]", Arrays.toString(
getSortedArray(synth.synthesize(dummyToken("червоний"), "adj:.:v_oru", true))));
getSortedArray(synth.synthesize(dummyToken("червоний"), "adj:.:v_oru.*", true))));
}

private AnalyzedToken dummyToken(String tokenStr) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public void testDictionary() throws IOException {

public void testTagger() throws IOException {
TestTools.myAssert("300 р. до н. е.",
"300/[300]numr -- р/[null]null -- до/[до]noun:n:nv|до/[до]pryim:rv_rod -- н/[null]null -- е/[null]null",
"300/[300]numr -- р/[р]todo -- до/[до]noun:n:nv|до/[до]pryim:rv_rod -- н/[null]null -- е/[null]null",
tokenizer, tagger);


Expand Down

0 comments on commit 2d0dcfd

Please sign in to comment.