chosen_words example

master
Castro0o 5 years ago
parent f9aac615b7
commit c397e44e1d

File diff suppressed because it is too large Load Diff

@ -363,7 +363,7 @@ for paragraph in faceapp_text_list:
tagged = pos_tag(tokenized) tagged = pos_tag(tokenized)
print('<p>') print('<p>')
for word, pos in tagged: for word, pos in tagged:
print('<span class="{}">{}</span>'.format(pos, word)) print('<span class="{} {}">{}</span>'.format(pos, word, word))
print('</p>') print('</p>')
print('</div>') print('</div>')

Loading…
Cancel
Save