Dogfennaeth API Adnabod Iaith

Language Detection API Documentation


Dadansoddi a dychwelyd, boed yn Gymraeg neu Saesneg yn bennaf ynghyd â sgôr rhifol. Mae angen y gallu hwn yn aml fel er mwyn sicrhau bod unrhyw brosesu neu storio testunau pellach yn gydnaws a'r iaith. Analyzes a text and returns whether it is primarily in Welsh or English along with a numeric score. This capability is often needed so that any further processing or storage of texts can be align with language.

API Fersiwn 1 (v1) API Version 1 (v1)

Adnabod Iaith

Language Detection

https://api.techiaith.cymru/langdetect/v1/

Paramedr Math Disgrifiad
Field Type Description
text String Y testun i adnabod yr iaith Text requiring language detection

Enghraifft:

Example:

                        
                            curl https://api.techiaith.cymru/langdetect/v1/?text=hen+wlad+fy+nhadau
                        
                    

Canlyniad Enghreifftiol:

Example Result:

                        
                            {
    "version": 1, 
    "success": true, 
    "result": 
    {
        "lang": "cy", 
        "probabilities": 
        {
            "cy": 95, 
            "un": 0
        }
    }
}
                        
                    

Cookies

Briwsion


We use cookies to improve your experience and enable recording your voice.

Rydym yn defnyddio briwsion i wella eich profiad a galluogi recordio eich llais

Accept & Continue Derbyn a Pharhau

Need to learn more? Privacy & Cookie Policy

Angen dysgu mwy? Preifatrwydd a Pholisi Briwsion