简体   繁体   中英

how to remove translation error in apertium language pair?

im translating words in terminal by this command
echo باپ | apertium -d . urd-pan_Arab
and it is giving me
#پیو
which is correct but when i run
echo کبھی | apertium -d . urd-pan_Arab
it is giving me same word again as if there is no word in dict file
*کبھی
instead of #کدی
this is repository ( https://github.com/hsumerf/apertium-urd-pan ) and words are on line no. 266 & 267 in file apertium-urd-pan/apertium-urd-pan.urd-pan_Arab.dix , how to overcome this problem?

In the apertium-urd dictionary, کبھی is an adverb, in the apertium-urd-pan dictionary it is a masculine noun. As the tags don't match the word is not added to the final transducer.

To fix this, either add کبھی as an adverb to the bilingual dictionary or add کبھی as a masculine noun to the Urdu monolingual dictionary.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM