Language Identification

No algorithm description given

Introduction This is a language identifier based on Apache Tika. The supported languages are: af Afrikaans an Aragonese ar Arabic ast Asturian be Belarusian br Breton ca Catalan bg Bulgarian bn Bengali cs Czech cy Welsh da Danish de German el Greek en English es Spanish et Estonian eu Basque fa Persian fi Finnish fr French ga Irish gl Galician gu Gujarati he Hebrew hi Hindi hr Croatian ht Haitian hu Hungarian id Indonesian is Icelandic it Italian ja Japanese km Khmer kn Kannada ko Korean lt Lithuanian lv Latvian mk Macedonian ml Malayalam mr Marathi ms Malay mt Maltese ne Nepali nl Dutch no Norwegian oc Occitan pa Punjabi pl Polish pt Portuguese ro Romanian ru Russian sk Slovak sl Slovene so Somali sq Albanian sr Serbian sv Swedish sw Swahili ta Tamil te Telugu th Thai tl Tagalog tr Turkish uk Ukrainian ur Urdu vi Vietnamese wa Walloon yi Yiddish zh-cn Simplified Chinese zh-tw Traditional Chinese Input(s): (Required) : Sentence. (key="sentence") (Optional) : Languages to detect. (Comma separated string) (key="languages") (Optional) : Specify if sentence is short or not. (key="shortText") (Optional) : Specify if sentence has mixed languages. (key="mixedLanguages") Output: A list of languages with detected language and confidence interval. (languages with very low confidence values are not shown) Example(s) Example 1. Parameter 1: Example sentence. {
 "sentence": "Hello, I'm speaking English. Can you guess which language I'm talking in?"
} Output: [
 "confidence": "0.9999959",
 "language": "en"
] Example 2. Parameter 1: Example sentence. Parameter 2: A list of languages to detect. {
 "sentence": "Hi, ben Turkce konusuyorum. Hangi dilde konustugumu anlayabiliyor musun?",
 "languages": "ru,it,fr,tr,en,uk"
} Output: [
 "confidence": "0.99999857",
 "language": "tr"
] Example 3. Parameter 1: Example sentence. Parameter 2: A list of languages to detect. Parameter 3: Letting the algorithm know it's a short text. Parameter 4: Letting the algorithm know it's a mixed language sentence. {
 "sentence": "Hi, ben Turkce konusuyorum. And I'm speaking in English. Hangi dilde konustugumu anlayabiliyor musun? Can you tell which language I'm speaking in?",
 "languages": "ru,it,fr,tr,en,uk",
 "shortText": "true",
 "mixedLanguages": "true"
} Output: [
 "confidence": "0.7142835",
 "language": "en"
 "confidence": "0.28571582",
 "language": "tr"

(no tags)

Cost Breakdown

0 cr
royalty per call
1 cr
usage per second
avg duration

Cost Calculator

API call duration (sec)
API calls
Estimated cost
per calls
for large volume discounts
For additional details on how pricing works, see Algorithmia pricing.

No permissions required

This algorithm does not require any special permissions.

To understand more about how algorithm permissions work, see the permissions documentation.

1. Type your input

2. See the result

Running algorithm...

3. Use this algorithm

curl -X POST -d '{{input | formatInput:"curl"}}' -H 'Content-Type: application/json' -H 'Authorization: Simple YOUR_API_KEY'
View cURL Docs
algo auth
algo run algo://nlp/LanguageIdentification/1.0.0 -d '{{input | formatInput:"cli"}}'
View CLI Docs
import com.algorithmia.*;
import com.algorithmia.algo.*;

String input = "{{input | formatInput:"java"}}";
AlgorithmiaClient client = Algorithmia.client("YOUR_API_KEY");
Algorithm algo = client.algo("algo://nlp/LanguageIdentification/1.0.0");
AlgoResponse result = algo.pipeJson(input);
View Java Docs
import com.algorithmia._
import com.algorithmia.algo._

val input = {{input | formatInput:"scala"}}
val client = Algorithmia.client("YOUR_API_KEY")
val algo = client.algo("algo://nlp/LanguageIdentification/1.0.0")
val result = algo.pipeJson(input)
View Scala Docs
var input = {{input | formatInput:"javascript"}};
           .then(function(output) {
View Javascript Docs
var input = {{input | formatInput:"javascript"}};
           .then(function(response) {
View NodeJS Docs
import Algorithmia

input = {{input | formatInput:"python"}}
client = Algorithmia.client('YOUR_API_KEY')
algo = client.algo('nlp/LanguageIdentification/1.0.0')
print algo.pipe(input)
View Python Docs

input <- {{input | formatInput:"r"}}
client <- getAlgorithmiaClient("YOUR_API_KEY")
algo <- client$algo("nlp/LanguageIdentification/1.0.0")
result <- algo$pipe(input)$result
View R Docs
require 'algorithmia'

input = {{input | formatInput:"ruby"}}
client = Algorithmia.client('YOUR_API_KEY')
algo = client.algo('nlp/LanguageIdentification/1.0.0')
puts algo.pipe(input).result
View Ruby Docs
use algorithmia::*;

let input = {{input | formatInput:"rust"}};
let client = Algorithmia::client("YOUR_API_KEY");
let algo = client.algo('nlp/LanguageIdentification/1.0.0');
let response = algo.pipe(input);
View Rust Docs
  • {{comment.username}}