Skip to content

Commit

Permalink
dictionary update
Browse files Browse the repository at this point in the history
  • Loading branch information
arysin committed May 31, 2023
1 parent a6eb99d commit 5a93ac8
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
3 changes: 3 additions & 0 deletions app/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
big_file.txt
build/
bin/
_api/
3 changes: 3 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ dependencies {
exclude group: 'org.apache.lucene'
exclude group: 'io.grpc'
}
if( project.hasProperty('morfologik_ukrainian_lt_version') ) {
implementation("ua.net.nlp:morfologik-ukrainian-lt:${morfologik_ukrainian_lt_version}")
}

implementation "ua.net.nlp:nlp_uk:$nlpUkVersion"

Expand Down
5 changes: 3 additions & 2 deletions app/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
ltVersion=6.1
ltUkVersion=6.1
groovyVersion=4.0.10
nlpUkVersion=3.2.1
groovyVersion=4.0.12
nlpUkVersion=3.2.2
morfologik_ukrainian_lt_version=6.1.5
6 changes: 3 additions & 3 deletions app/src/test/groovy/ua/net/nlp/api/HttpRequestTest.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -121,14 +121,14 @@ public class HttpRequestTest {
assertEquals 1, resps.size()
BatchResponse resp = resps[0]

assertEquals 67183, resp.sentences.size()
assertEquals 67182, resp.sentences.size()
assertNotNull resp.tokens
assertEquals 67183, resp.tokens.size()
assertEquals 67182, resp.tokens.size()
assertEquals 9, resp.tokens[0].size()
// assertEquals(['Машини', ' ', '-', ' ', 'не', ' ', 'розкіш', '...'. "\n"], resp.tokenized[0])

assertNotNull resp.lemmas
assertEquals 67183, resp.lemmas.size()
assertEquals 67182, resp.lemmas.size()
assertEquals(['машина', 'не', 'розкіш'], resp.lemmas[0])
}

Expand Down

0 comments on commit 5a93ac8

Please sign in to comment.