copying POS tags from English to target language
abraham[16] ------ ebreham[13]
book[2] ------------- akwụkwọ[1]
The above is a word-list I generated from two parallel translation texts
that contain lines 1 & 2 below. The word-pairs in the above contain the
correct word-to-word translations with the index no. See below lines 1 & 2
from different texts:
1 The book[2] of the history of Jesus Christ , son of David , son of
Abraham[16] :
2 Akwụkwọ[1] nke kọrọ akụkọ banyere
Jizọs Kraịst , nwa Devid , nwa Ebreham[13] :
Another text contains the POS tags of each word in English text. See below:
3/CD The/DT book/NN of/IN the/DT history/NN of/IN Jesus/NNP Christ/NNP ,/,
son/NN of/IN David/NNP ,/, son/NN of/IN Abraham/NNP :/:
how can I use python program to copy the tags from English tagged words
(line3 above) that are in the word-list unto the target language words
(line2) also in the word-list?
No comments:
Post a Comment