arabic

Extracting Arabic Proper Names from a text using Stanford-Parser

梦想的初衷 提交于 2019-12-12 23:06:05
问题 I am trying to extract Arabic proper names from a text using Stanford Parser. for example if I have an input sentence: تكريم سعد الدين الشاذلى using the Arabic Stanford parser, the tree diagram will be: (ROOT (NP (NN تكريم) (NP (NNP سعد) (DTNNP الدين) (NNP الشاذلى)))) I want to extract the proper name: سعد الدين الشاذلى which have the sub-tree: (NP (NNP سعد) (DTNNP الدين) (NNP الشاذلى)) I have tried this: similar question but there is some thing wrong in this line: List<TaggedWord>

Arabic text not showing in R-

旧时模样 提交于 2019-12-12 16:25:44
问题 Just started working with R in Arabic as I plan to do text analysis and text mining with Hadith corpus. I have been reading threads related to my question but nevertheless, still can't manage to get the REAL basics here (sorry, absolute beginner). So, I entered: textarabic.v <- scan("data/arabic-text.txt", encoding="UTF-8", what= "character",sep="\n") And what comes out textarabic.v is of course, symbols (pic). Prior to this, I saved my text in utf-8 as I read in a thread but still nothing

How to convert unicode to arabic characters in php?

非 Y 不嫁゛ 提交于 2019-12-12 15:28:41
问题 let us say that the string is $uni_str="06280628002006280628"; In Arabic,it is: بب بب so , how can i convert it in php without using html like: for($i=0; $i<strlen($uni_str); $i+=4) { $text_str .= "&#x".substr($uni_str,$i,4).";"; } as this code just solves the problem of viewing the result in html page , but i want to but the result in php variable . as the result of the code above was like بب بب 回答1: I found the solution , hope to help: function uni2arabic($uni_str) { for($i=0; $i<strlen(

Javascript - Detect Arabic Text

こ雲淡風輕ζ 提交于 2019-12-12 14:16:43
问题 Today I want to make an Arabic quiz which it uses input text. Here is my code: I know it's still basic. But the problem is it can't detect arabic text/language. When I try to input هاي text, it showed "Wrong!" alert. I don't know why it can't detect arabic language. Any solution? function answer(ans) { if (event.keyCode == 13) { if (ans.value == "هاي") { alert("Right!"); } else { alert("Wrong!"); } } } <input type="text" id="answer" style="direction:RTL;" onkeydown="answer(this)"> 来源: https:/

Supporting various languages (Hindi, Arabic, Tamil) in Android

一曲冷凌霜 提交于 2019-12-12 13:32:28
问题 I have been building an app whose base function is to translate things into various languages. However, I can't find a way to let the TextView support languages like Arabic, Hindi, Tamil, Telugu and so on. So far, I have seen that device manufacturers are controlling which language their device supports. Like, Samsung supports Hindi in India but no one else does. I am also providing my custom fonts for Arabic, Hindi, Tamil and other languages in assets, still nothing works. Any workaround? 来源

Multilingual Android app: Display English keyboard in Email & Password fields

一曲冷凌霜 提交于 2019-12-12 10:12:28
问题 We are working on a multilingual Android app, targeting both English & Arabic. An issue being faced is in the Login & Registration screens, where we want the username and password fields to be entered only in English text & thus display the English keyboard, irrespective of the device locale language Have tried setting the inputtype="email" in edittext but, this didn't work as desired. Can someone please point out if there are any possibilities. Thanks & regards, Jigar J 回答1: Finally got the

Arabic: 'source' Unicode to final display Unicode

瘦欲@ 提交于 2019-12-12 07:38:38
问题 simple question: this is the final display string I am looking for لعبة ديدة now below is each of the separate characters, before being 'glued' together (so I've put a space between each of them to stop the joining) ل ع ب ة د ي د ة note how they are NOT the same characters, there is some magical transform that melds them together and converts them to new Unicode characters. and then in that above, the characters are actually appearing right to left (in memory, they are left to right) so my

Bad result with encoding when Selecting arabic data from SQLite & android

一笑奈何 提交于 2019-12-12 05:42:00
问题 I have a problem with SQLite and android, I`m trying to select arabic data from the db, the db filled by the data outside android and i push it to android emulator.. the english text appears normaly but the arabic text appear in wrong way the text appears like this img so help me plz 回答1: I checked with Arabic database with random text created via code: db = openOrCreateDatabase("dictionary", MODE_PRIVATE, null); db.execSQL("CREATE TABLE IF NOT EXISTS LIST(wlist varchar);"); db.execSQL(

Recommendations for translating an app in arabic

人盡茶涼 提交于 2019-12-12 05:25:30
问题 For an upcoming project, one of the requirements is to translate the web application in a few languages, one of which is in Arabic. I know plenty about dealing with multiple languages, and know plenty about unicode. What I'm wondering is if there's some basic tips and recommendations I can follow anticipating an Arabic translation for my HTML templates. Edit: I'm mostly curious how to build an application that's easily translatable. With all LTR-languages it's often times a matter of string

android tablet arabic language support

放肆的年华 提交于 2019-12-12 04:45:58
问题 I am using Samsung Galaxy Tab and my app contains displaying Arabic texts. I have 2 rows that displays texts. One row will display in Arabic and other in English. The output will look like Some space is coming in front of the Arabic text. I have given these two text inside a tablelayout . But if I am displaying the text in English instead of Arabic then this extra space won't be there. Why is it so? Is that related to Arabic language? 回答1: Yes, Arabic is a right to left script. So nothing to