Re: [xsl] How to Detect string language using XSLT

Subject: Re: [xsl] How to Detect string language using XSLT
From: "Liam R. E. Quin liam@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 14 May 2015 16:05:42 -0000
On Thu, 2015-05-14 at 14:00 +0000, Vishnu vishnu@xxxxxxxxxxxx wrote:
> Hi Arvind,
> 
> Thank you for help.
> 
> Actually I have some articles for which the language information not 
> provided in the input article. Now I want to identify the language 
> by the article title.

Google Translate may help you but it's far from perfect. 
Differentiating between, say, Indic languages that use the Devanagari 
script (e.g. Hindi, Sanskrit) seems beyond it. It can usually 
distinguish between Italian and German, but not always between 
Portugese and Spanish. Humans can't always ell either. For very short 
passages it's even possible to confuse English and French.

Looking at the first few paragraphs of the article will probably give 
much better results.

Liam

> 
> For this, I have used some java API to detect the language. But it 
> is not giving me the 100% result.
> 
> Thanks,
> Vishnu
> 
> From: Arvind Kumar  akmishra848@xxxxxxxxx[mailto:
> xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx]
> Sent: Tuesday, May 12, 2015 2:53 PM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re: [xsl] How to Detect string language using XSLT
> 
> Hi Vishnu,
> 
> Could you please provide the more details about the issue you have?
> 
> Regards,
> Arvind Kr.
> 
> On Tue, May 12, 2015 at 1:35 PM, Wolfgang Laun 
> wolfgang.laun@xxxxxxxxx<mailto:wolfgang.laun@xxxxxxxxx> <
> xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx<mailto:
> xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>> wrote:
> Why don't you post a sample of the input and the expected output?
> -W
> 
> On 12 May 2015 at 08:53, VISH RAJPUT svishnu.singh4@xxxxxxxxx<mailto:
> svishnu.singh4@xxxxxxxxx> <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx<mailto:
> xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>> wrote:
> Hi,
> 
> Is it possible using XSLT to pass text string and the 3 digit 
> language code of that text?
> 
> 
> 
> --
> Vishnu Singh
> XSL-List info and archive< http://www.mulberrytech.com/xsl/xsl-list>EasyUnsubscribe<
>  http://-list/528976>(by email)
> 
> XSL-List info and archive< http://www.mulberrytech.com/xsl/xsl-list>
> EasyUnsubscribe<-list/645256> (by email)
> 
> XSL-List info and archive< http://www.mulberrytech.com/xsl/xsl-list>
> EasyUnsubscribe<-list/778978> (by email<>)
> "This e-mail and any attachments transmitted with it are for the 
> sole use of the intended recipient(s) and may contain confidential , 
> proprietary or privileged information. If you are not the intended 
> recipient, please contact the sender by reply e-mail and destroy all 
> copies of the original message. Any unauthorized review, use, 
> disclosure, dissemination, forwarding, printing or copying of this e-
> mail or any action taken in reliance on this e-mail is strictly 
> prohibited and may be unlawful."

Current Thread