https://github.com/commoncrawl/language-detection-cld2

Natural language detection, Java bindings for CLD2

https://github.com/commoncrawl/language-detection-cld2

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (4.9%) to scientific vocabulary

Keywords

language-detection language-identification natural-language
Last synced: 6 months ago · JSON representation

Repository

Natural language detection, Java bindings for CLD2

Basic Info
  • Host: GitHub
  • Owner: commoncrawl
  • License: apache-2.0
  • Language: Java
  • Default Branch: master
  • Homepage:
  • Size: 138 KB
Statistics
  • Stars: 14
  • Watchers: 15
  • Forks: 2
  • Open Issues: 2
  • Releases: 0
Topics
language-detection language-identification natural-language
Created over 7 years ago · Last pushed over 1 year ago
Metadata Files
Readme License

README.deezer-weslang

This is a Java wrapper for the library CLD2 (https://code.google.com/p/cld2/)
using JNA.

Initially the classes CLDHints and Cld2Library were automatically generated
using jnaerator (https://code.google.com/p/jnaerator/). To use it we needed to
remove the include of  as it crashed the app.

Then we executed the following command:
$ java -jar jnaerator-0.12-20140604.001151-54-shaded.jar -library Cld2 ~/language_detection/cld2/internal/generated_language.h ~/language_detection/cld2/public/encodings.h ~/language_detection/cld2/public/compact_lang_det.h -o . -v -noJar -noComp -runtime JNA -f -noComments

Then using:
$ nm libcld2_full.so
we got the mangled cpp names and replaced those in Cld2Library, this is because
of bug https://github.com/ochafik/nativelibs4java/issues/515.

We also removed lot of undesired content and made the class protected.
Note also, that we replaced the signature of ExtDetectLanguagesummary to use
arrays. We only keep one function, as the others can be easily implemented on
top of it.

We also extracted both Enumerations to their own classes.

In CLDHints, we replaced the pointers by strings and removed the references to
byreference and bypointer.

IMPORTANT: this bindings have only been tested for linux-x86-64, any other
OSes and flavors are not explicitly supported.

Owner

  • Name: Common Crawl Foundation
  • Login: commoncrawl
  • Kind: organization
  • Email: info@commoncrawl.org

Common Crawl provides an archive of webpages going back to 2007.

GitHub Events

Total
  • Push event: 1
Last Year
  • Push event: 1

Committers

Last synced: 9 months ago

All Time
  • Total Commits: 20
  • Total Committers: 1
  • Avg Commits per committer: 20.0
  • Development Distribution Score (DDS): 0.0
Past Year
  • Commits: 1
  • Committers: 1
  • Avg Commits per committer: 1.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Sebastian Nagel s****n@c****g 20
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 9 months ago

All Time
  • Total issues: 4
  • Total pull requests: 1
  • Average time to close issues: 19 days
  • Average time to close pull requests: 2 minutes
  • Total issue authors: 3
  • Total pull request authors: 1
  • Average comments per issue: 2.75
  • Average comments per pull request: 0.0
  • Merged pull requests: 1
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • renxiawang (2)
  • cgr71ii (1)
  • sebastian-nagel (1)
Pull Request Authors
  • sebastian-nagel (1)
Top Labels
Issue Labels
Pull Request Labels
bug (1)

Dependencies

pom.xml maven
  • net.java.dev.jna:jna 5.6.0
  • org.slf4j:slf4j-api 1.7.30
  • org.junit.jupiter:junit-jupiter-api 5.7.0 test
  • org.junit.jupiter:junit-jupiter-engine 5.7.0 test