Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OPENNLP-1627 - Add new models from ud 1.1 familiy #14

Merged
merged 1 commit into from
Oct 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 33 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,26 +40,39 @@ You can also follow our [mailing lists](http://opennlp.apache.org/mailing-lists.

## Overview

| Component | Language | Compatibility | Description | README and Reports |
|-------------------|-----------------------| ------------- |------------------------------------------------------------------------------------------------------------------------------------------| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Language Detector | Detects 103 languages | >= 1.8.3 | Detects 103 languages in ISO 693-3 standard. Works well with longer texts that have at least 2 sentences or more from the same language. | [README](https://www.apache.org/dist/opennlp/models/langdetect/1.8.3/README.txt) [Effectiveness](https://www.apache.org/dist/opennlp/models/langdetect/1.8.3/langdetect-183.bin.report.txt) [Misclassified](https://www.apache.org/dyn/closer.cgi/opennlp/models/langdetect/1.8.3/langdetect-183.bin.misclassified.txt) |
| Sentence | fr | >= 1.0.0 | Sentence detection model for French | [README](https://www.apache.org/dyn/closer.cgi/opennlp/models/ud-models-1.0/README) [Evaluation Logs](https://dist.apache.org/repos/dist/release/opennlp/models/ud-models-1.0/opennlp-training-eval-logs-1.0-1.9.3.zip) |
| Sentence | de | >= 1.0.0 | Sentence detection model for German | [README](https://www.apache.org/dyn/closer.cgi/opennlp/models/ud-models-1.0/README) [Evaluation Logs](https://dist.apache.org/repos/dist/release/opennlp/models/ud-models-1.0/opennlp-training-eval-logs-1.0-1.9.3.zip) |
| Sentence | en | >= 1.0.0 | Sentence detection model for English | [README](https://www.apache.org/dyn/closer.cgi/opennlp/models/ud-models-1.0/README) [Evaluation Logs](https://dist.apache.org/repos/dist/release/opennlp/models/ud-models-1.0/opennlp-training-eval-logs-1.0-1.9.3.zip) |
| Sentence | it | >= 1.0.0 | Sentence detection model for Italian | [README](https://www.apache.org/dyn/closer.cgi/opennlp/models/ud-models-1.0/README) [Evaluation Logs](https://dist.apache.org/repos/dist/release/opennlp/models/ud-models-1.0/opennlp-training-eval-logs-1.0-1.9.3.zip) |
| Sentence | nl | >= 1.0.0 | Sentence detection model for Dutch | [README](https://www.apache.org/dyn/closer.cgi/opennlp/models/ud-models-1.0/README) [Evaluation Logs](https://dist.apache.org/repos/dist/release/opennlp/models/ud-models-1.0/opennlp-training-eval-logs-1.0-1.9.3.zip) |
| Parts of Speech | de | >= 1.0.0 | Parts of speech model for German | [README](https://www.apache.org/dyn/closer.cgi/opennlp/models/ud-models-1.0/README) [Evaluation Logs](https://dist.apache.org/repos/dist/release/opennlp/models/ud-models-1.0/opennlp-training-eval-logs-1.0-1.9.3.zip) |
| Parts of Speech | en | >= 1.0.0 | Parts of speech model for English | [README](https://www.apache.org/dyn/closer.cgi/opennlp/models/ud-models-1.0/README) [Evaluation Logs](https://dist.apache.org/repos/dist/release/opennlp/models/ud-models-1.0/opennlp-training-eval-logs-1.0-1.9.3.zip) |
| Parts of Speech | fr | >= 1.0.0 | Parts of speech model for French | [README](https://www.apache.org/dyn/closer.cgi/opennlp/models/ud-models-1.0/README) [Evaluation Logs](https://dist.apache.org/repos/dist/release/opennlp/models/ud-models-1.0/opennlp-training-eval-logs-1.0-1.9.3.zip) |
| Parts of Speech | it | >= 1.0.0 | Parts of speech model for Italian | [README](https://www.apache.org/dyn/closer.cgi/opennlp/models/ud-models-1.0/README) [Evaluation Logs](https://dist.apache.org/repos/dist/release/opennlp/models/ud-models-1.0/opennlp-training-eval-logs-1.0-1.9.3.zip) |
| Parts of Speech | nl | >= 1.0.0 | Parts of speech model for Dutch | [README](https://www.apache.org/dyn/closer.cgi/opennlp/models/ud-models-1.0/README) [Evaluation Logs](https://dist.apache.org/repos/dist/release/opennlp/models/ud-models-1.0/opennlp-training-eval-logs-1.0-1.9.3.zip) |
| Parts of Speech | it | >= 1.0.0 | Parts of speech model for Italian | [README](https://www.apache.org/dyn/closer.cgi/opennlp/models/ud-models-1.0/README) [Evaluation Logs](https://dist.apache.org/repos/dist/release/opennlp/models/ud-models-1.0/opennlp-training-eval-logs-1.0-1.9.3.zip) |
| Tokens | de | >= 1.0.0 | Tokenizer model for German | [README](https://www.apache.org/dyn/closer.cgi/opennlp/models/ud-models-1.0/README) [Evaluation Logs](https://dist.apache.org/repos/dist/release/opennlp/models/ud-models-1.0/opennlp-training-eval-logs-1.0-1.9.3.zip) |
| Tokens | en | >= 1.0.0 | Tokenizer model for English | [README](https://www.apache.org/dyn/closer.cgi/opennlp/models/ud-models-1.0/README) [Evaluation Logs](https://dist.apache.org/repos/dist/release/opennlp/models/ud-models-1.0/opennlp-training-eval-logs-1.0-1.9.3.zip) |
| Tokens | fr | >= 1.0.0 | Tokenizer model for French | [README](https://www.apache.org/dyn/closer.cgi/opennlp/models/ud-models-1.0/README) [Evaluation Logs](https://dist.apache.org/repos/dist/release/opennlp/models/ud-models-1.0/opennlp-training-eval-logs-1.0-1.9.3.zip) |
| Tokens | it | >= 1.0.0 | Tokenizer model for Italien | [README](https://www.apache.org/dyn/closer.cgi/opennlp/models/ud-models-1.0/README) [Evaluation Logs](https://dist.apache.org/repos/dist/release/opennlp/models/ud-models-1.0/opennlp-training-eval-logs-1.0-1.9.3.zip) |
| Tokens | nl | >= 1.0.0 | Tokenizer model for Dutch | [README](https://www.apache.org/dyn/closer.cgi/opennlp/models/ud-models-1.0/README) [Evaluation Logs](https://dist.apache.org/repos/dist/release/opennlp/models/ud-models-1.0/opennlp-training-eval-logs-1.0-1.9.3.zip) |

We provide **Tokenizer**, **Sentence Detector** and **Part-of-Speech Tagger** models for the following languages:

- Bulgarian
- Croatian
- Czech
- Danish
- Dutch
- English
- Estonian
- Finnish
- French
- German
- Italian
- Latvian
- Norwegian
- Polish
- Portuguese
- Romanian
- Russian
- Serbian
- Slovak
- Slovenian
- Spanish
- Swedish
- Ukrainian

These models are compatible with OpenNLP `>= 1.0.0`. Model details are available [here](https://dist.apache.org/repos/dist/release/opennlp/models/ud-models-1.1/).


In addition, we provide a **Language Detector**, which is able to detect 103 languages in ISO 693-3 standard.
Works well with longer texts that have at least 2 sentences or more from the same language.

It is compatible with OpenNLP `>= 1.8.3`. Model details are available [here](https://downloads.apache.org/opennlp/models/langdetect/1.8.3/).

## Getting Started

Expand Down
2 changes: 1 addition & 1 deletion opennlp-models-langdetect/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<parent>
<groupId>org.apache.opennlp</groupId>
<artifactId>opennlp-models</artifactId>
<version>1.0.2-SNAPSHOT</version>
<version>1.1.0-SNAPSHOT</version>
</parent>

<artifactId>opennlp-models-langdetect</artifactId>
Expand Down
73 changes: 73 additions & 0 deletions opennlp-models-pos/opennlp-models-pos-bg/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
<?xml version="1.0" encoding="UTF-8"?>

<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.opennlp</groupId>
<artifactId>opennlp-models-pos</artifactId>
<version>1.1.0-SNAPSHOT</version>
</parent>

<name>Apache OpenNLP Models :: Part-Of-Speech :: Bulgarian</name>
<artifactId>opennlp-models-pos-bg</artifactId>

<properties>
<dist.base>${asf.dist.base}</dist.base>
<model.family>ud-models-1.1</model.family>
<model.name>opennlp-bg-ud-btb-pos-1.1-2.4.0.bin</model.name>
<model.version>2.4.0</model.version>
<model.sha256>b5bf61fd6a646c81c299b4a48fc2b6bfe37c2563cbe91767e547cbcd660ead38</model.sha256>
<model.language>bg</model.language>
</properties>

<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
<includes>
<include>**/model.properties</include>
</includes>
</resource>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>**/*.bin</include>
</includes>
</resource>
</resources>
<plugins>
<plugin>
<groupId>com.googlecode.maven-download-plugin</groupId>
<artifactId>download-maven-plugin</artifactId>
<configuration>
<url>${dist.base}/${model.family}/${model.name}</url>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
</plugin>
</plugins>
</build>

</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

model.name=${model.name}
model.version=${model.version}
model.sha256=${model.sha256}
model.language=${model.language}
73 changes: 73 additions & 0 deletions opennlp-models-pos/opennlp-models-pos-cs/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
<?xml version="1.0" encoding="UTF-8"?>

<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.opennlp</groupId>
<artifactId>opennlp-models-pos</artifactId>
<version>1.1.0-SNAPSHOT</version>
</parent>

<name>Apache OpenNLP Models :: Part-Of-Speech :: Czech</name>
<artifactId>opennlp-models-pos-cs</artifactId>

<properties>
<dist.base>${asf.dist.base}</dist.base>
<model.family>ud-models-1.1</model.family>
<model.name>opennlp-cs-ud-pdt-pos-1.1-2.4.0.bin</model.name>
<model.version>2.4.0</model.version>
<model.sha256>02e15f3ee385e2da83eab7582aa3a5076a91889d51dcb33e773f3ecbd24a9cf0</model.sha256>
<model.language>cs</model.language>
</properties>

<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
<includes>
<include>**/model.properties</include>
</includes>
</resource>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>**/*.bin</include>
</includes>
</resource>
</resources>
<plugins>
<plugin>
<groupId>com.googlecode.maven-download-plugin</groupId>
<artifactId>download-maven-plugin</artifactId>
<configuration>
<url>${dist.base}/${model.family}/${model.name}</url>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
</plugin>
</plugins>
</build>

</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

model.name=${model.name}
model.version=${model.version}
model.sha256=${model.sha256}
model.language=${model.language}
Loading