Détection de la langue
Le modèle de détection de la langue identifie le langage naturel du texte saisi.
Par exemple, grâce à la détection de la langue, les interactions avec le support technique peuvent être davantage personnalisées et être plus rapides. Les chatbots du service client peuvent interagir avec les clients en fonction de la langue du texte saisi et répondre de façon appropriée. Si un client a besoin d'aide pour un produit, le serveur de chatbot peut indiquer le manuel de produit dans la langue correspondante ou transférer le client vers un centre d'appels dans sa langue.
Langues prises en charge
Code de langue | Langue |
---|---|
af |
Afrikaans |
sq |
Albanais |
am |
Amharique |
ar |
Arabe |
hy |
Arménien |
as |
Assamais |
az |
Azerbaïdjanais |
ba |
Bachkir |
eu |
Basque |
be |
Biélorusse |
bn |
Bengali |
ber |
Berbère |
bs |
Bosniaque |
bg |
Bulgare |
my |
Birman |
ca |
Catalan |
ceb |
Cebuano |
km |
Khmer central |
ce |
Tchétchénie |
zh-CN |
Chinois (simplifié) |
zh-TW |
Chinois ( traditionnel) |
cv |
Tchouvachie |
co |
Corse |
hr |
Croate |
cs |
Tchèque |
da |
Danois |
dv |
Maldivien |
nl |
Hollandais |
mhr |
Mari oriental |
en |
Anglais |
eo |
Espéranto |
et |
Estonien |
fi |
Finnois |
fr |
Français |
gl |
Galicien |
ka |
Géorgien |
de |
Allemand |
el |
Grec |
gu |
Goudjarati |
ht |
Créole d'Haïti |
ha |
Haoussa |
he |
Hébreu |
hi |
Hindi |
hu |
Hongrois |
is |
Islandais |
io |
Ido |
ig |
Igbo |
ilo |
Ilokano |
id |
Indonésien |
ga |
Irlandais |
it |
Italien |
ja |
Japonais |
jv |
Javanais |
kab |
Kabyle |
kn |
Kannada |
kk |
Kazakh |
ky |
Kirghize |
ko |
Coréen |
ku |
Kurde |
lo |
Laotien |
la |
Latin |
lv |
Lettonie |
lt |
Lituanien |
jbo |
Lojban |
lb |
Luxembourgeois |
mk |
Macédonien |
mg |
Madagascar |
ms |
Malais |
ml |
Malayalam |
mt |
Maltais |
mr |
Marathi |
mn |
Mongol |
ne |
Népalais |
no |
Norvégien (Bokmal) |
nn |
Norvégien (Nynorsk) |
or |
Oriya |
fa |
Punjabi/Panjabi |
pl |
Persan |
pt |
Polonais |
pa |
portugais, |
ps |
Pachto |
qu |
Quechua |
ro |
Roumain |
ru |
Russe |
sr |
Serbe |
sd |
Sindhi |
si |
Sinhala |
sk |
Slovaque |
sl |
Slovène |
so |
Somali |
es |
Espagnol |
su |
Soundanais |
sw |
Souahéli |
sv |
Suédois |
tl |
Tagalog |
tg |
Tadjik |
ta |
Tamoul |
tt |
Tatare |
te |
Telugu |
th |
Thaï |
bo |
Tibétain |
tr |
Turc |
tk |
Turkmène |
ug |
Ouïgour |
uk |
Ukrainien |
ur |
Ourdou |
uz |
Ouzbek |
vi |
Vietnamien |
war |
Waray |
cy |
Gallois |
fy |
Frison occidental |
sah |
Yakoute |
yi |
Yiddish |
yo |
Yorouba |
Exemples
Texte saisi | Langue et scores |
---|---|
|
English 0.9999 |
|
Russian 0.9999 |
Le contenu JSON pour le premier exemple est le suivant :
- Exemple de demande
-
POST https://<region-url>/20210101/actions/batchDetectDominantLanguage
- Format de demande d'API :
-
{ "documents": [ { "key": "doc1", "text": "OCI recently added new services to existing compliance program including SOC, HIPAA, and ISO to enable our customers to solve their use cases. We also released new white papers and guidance documents related to Object Storage, the Australian Prudential Regulation Authority (APRA), and the Central Bank of Brazil. These resources help regulated customers better understand how OCI supports their regional and industry-specific compliance requirements. Not only are we expanding our number of compliance offerings and regulatory alignments, we continue to add regions and services at a faster clip." } ] }
- Contenu JSON de la réponse :
-
{ "documents": [ { "key": "1", "languages": [ { "code": "en", "name": "English", "score": 0.9999840921009815 } ] } ], "errors": [] }
Limites
-
Une seule langue est renvoyée. Lorsque l'entrée est multilingue, la langue dominante est renvoyée.