The Watson Natural Language Processing Language Detection identifies the language of input text.
Block namelang-detect_izumo_multi_stock
Supported languages
The Language Detection block is able to detect the following languages:
af, ar, bs, ca, cs, da, de, el, en, es, fi, fr, he, hi, hr, it, ja, ko, nb, nl, nn, pl, pt, ro, ru, sk, sr, sv, tr, zh_cn, zh_tw
Capabilities
Use this block to detect the language of an input text.
Dependencies on other blocks
None
Code sample
# Load the language detection model
lang_detection_model = watson_nlp.load('lang-detect_izumo_multi_stock')
# Run it on input text
detected_lang = lang_detection_model.run('IBM announced new advances in quantum computing')
# Retrieve language ISO codeprint(detected_lang.to_iso_format())
About cookies on this siteOur websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising.For more information, please review your cookie preferences options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.