Rilevamento della lingua

Il modello di rilevamento del linguaggio identifica il linguaggio naturale in cui si trova il testo di input.

Ad esempio, il rilevamento della lingua può aiutare a rendere le interazioni con l'assistenza clienti più personali e veloci. I chatbot dell'assistenza clienti possono interagire con i clienti in base alla lingua del testo di input e rispondere di conseguenza. Se un cliente ha bisogno di aiuto per un prodotto, il server chatbot può compilare il manuale del prodotto in lingua corrispondente o trasferirlo al call center per la lingua specifica.

Lingue supportate

Codice lingua Lingua
af Afrikaans
sq Albanese
am Amarico
ar Arabo
hy Armeno
as Assamese
az Azero
ba Bashkiro
eu Basco
be Bielorusso
bn Bengali
ber Berbero
bs Bosniaco
bg Bulgaro
my Birmano
ca Catalano
ceb Cebuano
km Khmer centrale
ce Cecenia
zh-CN Cinese semplificato
zh-TW Cinese tradizionale
cv Chuvash
co Corso
hr Croato
cs Ceco
da Danese
dv Maldiviano
nl Olandese
mhr Mari orientale
en Inglese
eo Esperanto
et Estone
fi Finlandese
fr francese
gl Galiziano
ka Georgiano
de tedesco
el Lingua
gu Gujarati
ht Haitiano
ha Hausa
he ebraico
hi Hindi
hu Ungherese
is Islandese
io Ido
ig Igbo
ilo Ilocano
id Indonesiano
ga Irlandese
it italiano
ja giapponese
jv Giavanese
kab Kabyle
kn Kannada
kk Kazako
ky Kirghiso / Kirghiso
ko coreano
ku Curdo
lo Lao
la Latino
lv Lettone
lt lituano
jbo Lojban
lb Lussemburghese
mk Macedone
mg Madagascar
ms Malese
ml Malayalam
mt Maltese
mr Marathi
mn Mongolo
ne Nepalese
no Norvegese (Bokmal)
nn Norvegese (Nynorsk)
or Oriya
fa Punjabi (Panjabi)
pl Persiano
pt Polacco
pa Portoghese
ps Pashto
qu Quechua
ro Romeno
ru Russo
sr Serbo
sd Sindhi
si Singalese
sk Slovacco
sl Sloveno
so Somali
es spagnolo
su Sundanese
sw Swahili
sv svedese
tl Tagalog
tg Tagiko
ta Tamil
tt Tataro
te Telugu
th Thailandese
bo Tibetano
tr Turco
tk Turkmeno
ug Uiguro
uk Ucraina
ur Urdu
uz Usbeco
vi Vietnamita
war Waray
cy Gallese
fy Frisone occidentale
sah Yakut
yi Yiddish
yo Yoruba

Esempi

Testo di input Lingua e punteggi
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 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 rate.
English 0.9999
«Нос» - сатирический рассказ Николая
Гоголя, написанный во время его жизни в
Санкт-Петербурге. В это время в
творчестве Гоголя основное внимание
уделялось сюрреализму и гротеску с
романтическим оттенком; Предлагаемый
здесь рассказ «Нос» является примером.
Рассказ Николая Гоголя «Нос» был
написан между 1832 и 1833 годами и
завершен в 1834 году, подвергался
различным пересмотрам и модификациям
Н. Гоголем, в основном из-занепрерывного вмешательства цензуры.
Russian 0.9999

Il JSON per il primo esempio è:

Richiesta campione
POST https://<region-url>/20210101/actions/batchDetectDominantLanguage
Formato richiesta 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."
    }
  ]
}
JSON risposta:
{
    "documents": [
        {
            "key": "1",
            "languages": [
                {
                    "code": "en",
                    "name": "English",
                    "score": 0.9999840921009815
                }
            ]
        }
    ],
    "errors": []
}

Limitazioni

  • Viene restituita una sola lingua. Nei casi in cui l'input è multilingue, viene restituita la lingua dominante.