[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: How to Detect string language using XSLT
If someone listens to the talks in my family, they are going to discover a new language: Bulgarian-English, where we talk in Bulgarian and sometimes use better-suited English words, and if these happen to be verbs, we typically append them with a corresponding Bulgarian verb suffix to precisely denote tense/voice/person/gender/plurality :) I don't think this has ever been described in a scientific paper yet, and I suspect that such hybrid languages are typical in most immigrant families. Cheers, Dimitre On Thu, May 14, 2015 at 9:05 AM, Liam R. E. Quin liam@xxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > 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: 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." >> > -- Cheers, Dimitre Novatchev --------------------------------------- Truly great madness cannot be achieved without significant intelligence. --------------------------------------- To invent, you need a good imagination and a pile of junk ------------------------------------- Never fight an inanimate object ------------------------------------- To avoid situations in which you might make mistakes may be the biggest mistake of all ------------------------------------ Quality means doing it right when no one is looking. ------------------------------------- You've achieved success in your field when you don't know whether what you're doing is work or play ------------------------------------- To achieve the impossible dream, try going to sleep. ------------------------------------- Facts do not cease to exist because they are ignored. ------------------------------------- Typing monkeys will write all Shakespeare's works in 200yrs.Will they write all patents, too? :) ------------------------------------- I finally figured out the only reason to be alive is to enjoy it.
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|