xsl-list
[Top] [All Lists]

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

2015-05-14 11:24:50
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(_at_)w3(_dot_)org
<xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com> wrote:
On Thu, 2015-05-14 at 14:00 +0000, Vishnu vishnu(_at_)innodata(_dot_)com 
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(_at_)gmail(_dot_)com[mailto:
xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com]
Sent: Tuesday, May 12, 2015 2:53 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
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(_dot_)laun(_at_)gmail(_dot_)com<mailto:wolfgang(_dot_)laun(_at_)gmail(_dot_)com>
 <
xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com<mailto:
xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com>> 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(_dot_)singh4(_at_)gmail(_dot_)com<mailto:
svishnu(_dot_)singh4(_at_)gmail(_dot_)com> 
<xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com<mailto:
xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com>> 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.
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--

<Prev in Thread] Current Thread [Next in Thread>