Détection de la langue

Le modèle de détection de la langue identifie le langage naturel du texte d'entrée.

Par exemple, la détection de la langue peut permettre de personnaliser et d'accélérer les interactions avec le soutien à la clientèle. Les agents conversationnels du service à la clientèle peuvent interagir avec les clients en fonction de la langue de leur texte d’entrée et leur répondre en conséquence. Si un client a besoin d'aide pour un produit, le serveur d'agents conversationnels peut utiliser le manuel du produit dans la langue voulue ou transférer le client vers le centre d'appels approprié, en fonction de la langue utilisée.

Langues prises en charge

Code de la langue Langue
af Afrikaans
sq Albanais
am Amharique
ar Arabe
hy Arménien
as Assamais
az Azéri
ba Bachkir
eu Basque
be Biélorusse
bn Bengali
ber Berbère
bs Bosnien
bg Bulgare
my Birman
ca Catalan
ceb Cébouano
km Khmer central
ce Tchétchène
zh-CN Chinois ( simplifié)
zh-TW Chinois (traditionnel)
cv Tchouvache
co Corse
hr Croate
cs Tchèque
da Danois
dv Divehi
nl néerlandais
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 Gjarati
ht Haïtien
ha Haoussa
he Hébreu
hi Hindi
hu Hongrois
is Islandais
io Ido
ig Igbo
ilo Ilocano
id Indonésien
ga Irlandais
it Italien
ja Japonais
jv Javanais
kab Kabyle
kn Canara
kk Kazakh
ky Kirghize
ko Coréen
ku Kurde
lo Lao
la Latin
lv Letton
lt Lituanien
jbo Lojban
lb Luxembourgeois
mk Macédonien
mg Malgache
ms Malais
ml Malayalam
mt Maltais
mr Marathi
mn Mongol
ne Népalais
no Norvégien (Bokmal)
nn Norvégien (Nynorsk)
or Odia
fa Pendjabi/Panjabi
pl Persan
pt Polonais
pa Portugais
ps Pachto
qu Quechua
ro Roumain
ru Russe
sr Serbe
sd Sindhi
si Cingalais
sk Slovaque
sl Slovène
so Somalie
es Espagnol
su Soundanais
sw Souahéli
sv Suédois
tl Tagalog
tg Tadjik
ta Tamoul
tt Tatar
te Télougou
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
sah Iakoute
yi Yiddish
yo Yorouba

Exemples

Texte entré Langue et note
OCI recently added new services to the 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 Asteroid Prudential Regulation Authority (APRA), and 
the Central Bank of Bankland. 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 rate.
English 0.9999
«Нос» - сатирический рассказ Николая
Гоголя, написанный во время его жизни в
Санкт-Петербурге. В это время в
творчестве Гоголя основное внимание
уделялось сюрреализму и гротеску с
романтическим оттенком; Предлагаемый
здесь рассказ «Нос» является примером.
Рассказ Николая Гоголя «Нос» был
написан между 1832 и 1833 годами и
завершен в 1834 году, подвергался
различным пересмотрам и модификациям
Н. Гоголем, в основном из-занепрерывного вмешательства цензуры.
Russian 0.9999

Les données JSON du premier exemple sont les suivantes :

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 Asteroid Prudential Regulation Authority (APRA), and the 
Central Bank of Bankland. 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."
    }
  ]
}
Réponse JSON :
{
    "documents": [
        {
            "key": "1",
            "languages": [
                {
                    "code": "en",
                    "name": "English",
                    "score": 0.9999840921009815
                }
            ]
        }
    ],
    "errors": []
}

Limites

  • Une seule langue est retournée. Lorsque l'entrée est multilingue, la langue dominante est retournée.