Skip to content
Advertisement

Tag: linguistics

Python – How to loop through each index position in a list?

Given a list [[[“source1”], [“target1”], [“alignment1”]], [“source2”], [“target2”], [“alignment2”]], …] , I want to extract the words in the source that align with the words in the target. For example, in the English-German sentence pair The hat is on the table . – Der Hut liegt auf dem Tisch ., I want to print the following: So I have written

Advertisement