Skip to content

Commit

Permalink
OPENNLP-1599 - Add "model.language" to opennlp-models
Browse files Browse the repository at this point in the history
  • Loading branch information
rzo1 committed Aug 7, 2024
1 parent 873f73f commit e5a8630
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,8 @@ public String getModelSHA256() {
return properties != null ? properties.getProperty("model.sha256", "unknown") : "unknown";
}

public String getModelLanguage() {
return properties != null ? properties.getProperty("model.language", "unknown") : "unknown";
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public void testLoadOpenNLPModel() throws Exception {
model.getModelSHA256());
assertEquals("langdetect-183.bin", model.getModelName());
assertEquals("1.8.3", model.getModelVersion());
assertEquals("root", model.getModelLanguage());
}

}
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@
<log4j2.version>2.23.1</log4j2.version>
<jmh.version>1.37</jmh.version>
<classgraph.version>4.8.174</classgraph.version>
<opennlp.models.version>1.0.0</opennlp.models.version>
<opennlp.models.version>1.0.1</opennlp.models.version>
<opennlp.forkCount>1.0C</opennlp.forkCount>
<coveralls.maven.plugin>4.3.0</coveralls.maven.plugin>
<jacoco.maven.plugin>0.8.12</jacoco.maven.plugin>
Expand Down

0 comments on commit e5a8630

Please sign in to comment.