All Projects → detectlanguage → detectlanguage-java

detectlanguage / detectlanguage-java

Licence: MIT license
Detect Language API Java Client

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to detectlanguage-java

php-google-translate-for-free
Library for free use Google Translator. With attempts connecting on failure and array support.
Stars: ✭ 124 (+439.13%)
Mutual labels:  language-detection, detect-language
pycld3
Python3 bindings for the Compact Language Detector v3 (CLD3)
Stars: ✭ 122 (+430.43%)
Mutual labels:  language-detection
Guess Language.el
Emacs minor mode that detects the language you're typing in. Automatically switches spell checker. Supports multiple languages per document.
Stars: ✭ 78 (+239.13%)
Mutual labels:  language-detection
Go Lang Detector
A small library in golang, that detects the language of a text. (text categorization)
Stars: ✭ 134 (+482.61%)
Mutual labels:  language-detection
Spacy Cld
Language detection extension for spaCy 2.0+
Stars: ✭ 103 (+347.83%)
Mutual labels:  language-detection
L10n Swift
Localization of the application with ability to change language "on the fly" and support for plural form in any language.
Stars: ✭ 177 (+669.57%)
Mutual labels:  language-detection
Cld2
R Wrapper for Google's Compact Language Detector 2
Stars: ✭ 34 (+47.83%)
Mutual labels:  language-detection
Fasttext.js
FastText for Node.js
Stars: ✭ 127 (+452.17%)
Mutual labels:  language-detection
Whatthelang
Lightning Fast Language Prediction 🚀
Stars: ✭ 130 (+465.22%)
Mutual labels:  language-detection
cnn-ld-tf
Convolutional Neural Network for Language Detection in Tensorflow
Stars: ✭ 12 (-47.83%)
Mutual labels:  language-detection
React Native Localize
🌍 A toolbox for your React Native app localization
Stars: ✭ 1,682 (+7213.04%)
Mutual labels:  language-detection
Padatious
A neural network intent parser
Stars: ✭ 124 (+439.13%)
Mutual labels:  language-detection
Hms Ml Demo
HMS ML Demo provides an example of integrating Huawei ML Kit service into applications. This example demonstrates how to integrate services provided by ML Kit, such as face detection, text recognition, image segmentation, asr, and tts.
Stars: ✭ 187 (+713.04%)
Mutual labels:  language-detection
Paasaa
Natural language detection for Elixir
Stars: ✭ 86 (+273.91%)
Mutual labels:  language-detection
spacy-langdetect
A fully customisable language detection pipeline for spaCy
Stars: ✭ 86 (+273.91%)
Mutual labels:  language-detection
Google Translate Php
🌐 Free Google Translate API PHP Package. Translates totally free of charge.
Stars: ✭ 1,131 (+4817.39%)
Mutual labels:  language-detection
Spark Nlp
State of the Art Natural Language Processing
Stars: ✭ 2,518 (+10847.83%)
Mutual labels:  language-detection
detectlanguage-python
Detect Language API Python Client
Stars: ✭ 49 (+113.04%)
Mutual labels:  language-detection
googletrans
G文⚡️: Concurrency-safe, Free and Unlimited google translate api for Golang. 🔥免费、无限、并发安全的谷歌翻译包
Stars: ✭ 94 (+308.7%)
Mutual labels:  detect-language
Malaya
Natural Language Toolkit for bahasa Malaysia, https://malaya.readthedocs.io/
Stars: ✭ 239 (+939.13%)
Mutual labels:  language-detection

Detect Language API Java Client

Maven metadata URI Build Status

Detects language of the given text. Returns detected language codes and scores.

Installation

Maven

Add this dependency to your pom.xml:

<dependency>
    <groupId>com.detectlanguage</groupId>
    <artifactId>detectlanguage</artifactId>
    <version>1.1.0</version>
</dependency>

Gradle

Add this dependency to your build.gradle:

repositories {
	mavenCentral()
}

dependencies {
	compile 'com.detectlanguage:detectlanguage:1.1.0'
}

Usage

import com.detectlanguage.DetectLanguage;

Configuration

Before using Detect Language API client you have to setup your personal API key. You can get it by signing up at https://detectlanguage.com

DetectLanguage.apiKey = "YOURAPIKEY";

// Enable secure mode (SSL) if passing sensitive information
// DetectLanguage.ssl = true;

Language detection

List<Result> results = DetectLanguage.detect("Hello world");

Result result = results.get(0);

System.out.println("Language: " + result.language);
System.out.println("Is reliable: " + result.isReliable);
System.out.println("Confidence: " + result.confidence);

Simple detection

String language = DetectLanguage.simpleDetect("Hello world");

Batch detection

String[] texts = {
	"Hello world",
	"Labas rytas"
};

List<List<Result>> results = DetectLanguage.detect(texts);

Requirements

Which you can download to target/dependency using:

mvn dependency:copy-dependencies

Issues

Please use appropriately tagged github issues to request features or report bugs.

Testing

mvn test

Publishing

Sonatype OSS repository.

Snapshot

mvn clean deploy

Stage Release

mvn release:clean
mvn release:prepare
mvn release:perform

Release

Done using the Sonatype Nexus UI.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Write your code and tests
  4. Ensure all tests still pass
  5. Commit your changes (git commit -am 'Add some feature')
  6. Push to the branch (git push origin my-new-feature)
  7. Create new pull request
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].