Skip to content

Commit

Permalink
bump LT to 6.3
Browse files Browse the repository at this point in the history
  • Loading branch information
arysin committed Oct 9, 2023
1 parent 9d387d5 commit e1dede8
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 29 deletions.
8 changes: 4 additions & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ltVersion=6.1
ltUkVersion=6.1
ltVersion=6.3
ltUkVersion=6.3
#ltUkVersion=6.2-SNAPSHOT
morfologik_ukrainian_lt_version=6.1.5
#morfologik_ukrainian_lt_version=6.1.5
groovyVersion=4.0.12
# nlp_uk version
version=3.2.2
version=3.2.3
4 changes: 2 additions & 2 deletions src/main/groovy/ua/net/nlp/other/CheckText.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ package ua.net.nlp.other
// This script checks the text with LanguageTool
// NOTE: it disables some rules, like spelling, double whitespace etc

@Grab(group='org.languagetool', module='languagetool-core', version='6.1')
@Grab(group='org.languagetool', module='language-uk', version='6.1')
@Grab(group='org.languagetool', module='languagetool-core', version='6.3')
@Grab(group='org.languagetool', module='language-uk', version='6.3')
@Grab(group='ch.qos.logback', module='logback-classic', version='1.4.+')
@Grab(group='info.picocli', module='picocli', version='4.6.+')

Expand Down
6 changes: 3 additions & 3 deletions src/main/groovy/ua/net/nlp/other/CleanText.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ package ua.net.nlp.other
// mark/rate or remove Russian paragraphs

@GrabConfig(systemClassLoader=true)
@Grab(group='org.languagetool', module='languagetool-core', version='6.1')
@Grab(group='org.languagetool', module='language-uk', version='6.1')
@Grab(group='org.languagetool', module='language-ru', version='6.1')
@Grab(group='org.languagetool', module='languagetool-core', version='6.3')
@Grab(group='org.languagetool', module='language-uk', version='6.3')
@Grab(group='org.languagetool', module='language-ru', version='6.3')
@Grab(group='ch.qos.logback', module='logback-classic', version='1.4.+')
@Grab(group='info.picocli', module='picocli', version='4.6.+')

Expand Down
4 changes: 2 additions & 2 deletions src/main/groovy/ua/net/nlp/other/Inflect.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
package ua.net.nlp.other

@GrabConfig(systemClassLoader=true)
@Grab(group='org.languagetool', module='languagetool-core', version='6.1')
@Grab(group='org.languagetool', module='language-uk', version='6.1')
@Grab(group='org.languagetool', module='languagetool-core', version='6.3')
@Grab(group='org.languagetool', module='language-uk', version='6.3')
@Grab(group='ch.qos.logback', module='logback-classic', version='1.4.+')
@Grab(group='info.picocli', module='picocli', version='4.6.+')

Expand Down
4 changes: 2 additions & 2 deletions src/main/groovy/ua/net/nlp/other/StressText.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
package ua.net.nlp.other

@GrabConfig(systemClassLoader=true)
@Grab(group='org.languagetool', module='languagetool-core', version='6.1')
@Grab(group='org.languagetool', module='language-uk', version='6.1')
@Grab(group='org.languagetool', module='languagetool-core', version='6.3')
@Grab(group='org.languagetool', module='language-uk', version='6.3')
@Grab(group='ch.qos.logback', module='logback-classic', version='1.4.+')
@Grab(group='info.picocli', module='picocli', version='4.6.+')

Expand Down
8 changes: 4 additions & 4 deletions src/main/groovy/ua/net/nlp/tools/TagText.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
package ua.net.nlp.tools

@GrabConfig(systemClassLoader=true)
@Grab(group='org.languagetool', module='languagetool-core', version='6.1')
@Grab(group='org.languagetool', module='language-uk', version='6.1')
@Grab(group='org.languagetool', module='language-ru', version='6.1')
@Grab(group='ua.net.nlp', module='morfologik-ukrainian-lt', version='6.1.5')
@Grab(group='org.languagetool', module='languagetool-core', version='6.3')
@Grab(group='org.languagetool', module='language-uk', version='6.3')
@Grab(group='org.languagetool', module='language-ru', version='6.3')
//@Grab(group='ua.net.nlp', module='morfologik-ukrainian-lt', version='6.1.5')
@Grab(group='ch.qos.logback', module='logback-classic', version='1.4.+')
@Grab(group='info.picocli', module='picocli', version='4.6.+')

Expand Down
4 changes: 2 additions & 2 deletions src/main/groovy/ua/net/nlp/tools/TokenizeText.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
package ua.net.nlp.tools

@GrabConfig(systemClassLoader=true)
@Grab(group='org.languagetool', module='languagetool-core', version='6.1')
@Grab(group='org.languagetool', module='language-uk', version='6.1')
@Grab(group='org.languagetool', module='languagetool-core', version='6.3')
@Grab(group='org.languagetool', module='language-uk', version='6.3')
@Grab(group='ch.qos.logback', module='logback-classic', version='1.4.+')
@Grab(group='info.picocli', module='picocli', version='4.6.+')

Expand Down
10 changes: 4 additions & 6 deletions src/test/groovy/ua/net/nlp/tools/TagTextModLesyaTest.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -100,15 +100,13 @@ class TagTextModLesyaTest {
"""
assertEquals expected, tagged.tagged

tagged = tagText.tagText("пізнійше")
tagged = tagText.tagText("головнійше")
expected =
"""<sentence>
<tokenReading>
<token value="пізнійше" lemma="пізніше" tags="adv:compc:&amp;predic:alt" />
<token value="пізнійше" lemma="пізніше" tags="prep:alt" />
<token value="пізнійше" lemma="пізніший" tags="adj:n:v_kly:compc:alt" />
<token value="пізнійше" lemma="пізніший" tags="adj:n:v_naz:compc:alt" />
<token value="пізнійше" lemma="пізніший" tags="adj:n:v_zna:compc:alt" />
<token value="головнійше" lemma="головніший" tags="adj:n:v_kly:compc:alt" />
<token value="головнійше" lemma="головніший" tags="adj:n:v_naz:compc:alt" />
<token value="головнійше" lemma="головніший" tags="adj:n:v_zna:compc:alt" />
</tokenReading>
</sentence>
"""
Expand Down
8 changes: 4 additions & 4 deletions src/test/groovy/ua/net/nlp/tools/TagTextModZhelehTest.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,10 @@ class TagTextModZhelehTest {
expected =
"""<sentence>
<tokenReading>
<token value="Поднїпровя" lemma="Подніпров'я" tags="noun:inanim:n:v_kly:prop:geo" />
<token value="Поднїпровя" lemma="Подніпров'я" tags="noun:inanim:n:v_naz:prop:geo" />
<token value="Поднїпровя" lemma="Подніпров'я" tags="noun:inanim:n:v_rod:prop:geo" />
<token value="Поднїпровя" lemma="Подніпров'я" tags="noun:inanim:n:v_zna:prop:geo" />
<token value="Поднїпровя" lemma="Подніпров'я" tags="noun:inanim:n:v_kly:prop:geo:bad" />
<token value="Поднїпровя" lemma="Подніпров'я" tags="noun:inanim:n:v_naz:prop:geo:bad" />
<token value="Поднїпровя" lemma="Подніпров'я" tags="noun:inanim:n:v_rod:prop:geo:bad" />
<token value="Поднїпровя" lemma="Подніпров'я" tags="noun:inanim:n:v_zna:prop:geo:bad" />
</tokenReading>
</sentence>
"""
Expand Down

0 comments on commit e1dede8

Please sign in to comment.