Skip to content

Get Dominant Language in Batch:

Algorithm Name: batch_get_dominant_language

For the text that are mixed with multiple different languages, this algorithms understands the text and returns a list of languages in the text, as well as the language portion.

Input: a list of text strings

Output: a dictionary of features

import Aiii
c = Aiii.Client("YOUR_API_KEY")

data = {
    "data": "this is an input string"
}
algo = c.algo('algo://adamleo/batch_get_dominant_language')
response = algo.pipe(data)