Pythonの機械学習(ディープラーニング)を活用した自然言語処理・自然言語認識ライブラリ”fastText”を使用し、言語や外国語が一体何語なのかを自動認識します。 fastTextというツールを使用して、テキストの言語が日本語なのか中国語なのか英語なのかフランス語なのか、何語なのかを判定します。 fastText/language-identification.md at master · facebookresearch/fastText facebookresearch/fastText: Library for fast text representation and classification. Language detection · Issue #878 · facebookresearch/fastText こんな感じにできます。 “hola”はスペイン語なんですが、英
![自然言語テキストが何語なのか判定する [fastText] - プログラミングの「YUIPRO」](https://cdn-ak-scissors.b.st-hatena.com/image/square/7d9148472fc974a9839817b1e8a67e38dee4d577/height=288;version=1;width=512/https%3A%2F%2Fyuis.xsrv.jp%2Fdata%2FKSCpm0aazuAqkyw4deeBN647FKfeZ8NS.png)