i'm inputting a file of sentences where words are tagged with part-of-speech. each line is a sentence, and each word is tagged w/ a trailing slash and the part of speech:
Mr./NNP Vinken/NNP is/VBZ chairman/NN of/IN Elsevier/NNP N.V./NNP ,/, the/DT Dutch/NNP publishing/VBG group/NN ./.
There/EX is/VBZ no/DT asbestos/NN in/IN our/PRP$ products/NNS now/RB ./. ''/''
i made the iterator above to input a file of these and format them into a vector of word/part-of-speech pairs. can i improve its performance?