Skip to content

Instantly share code, notes, and snippets.

@vallantin
Created November 19, 2018 16:17
Show Gist options
  • Save vallantin/5003b40332bd44e4fc3c4ea93d37c9a7 to your computer and use it in GitHub Desktop.
Save vallantin/5003b40332bd44e4fc3c4ea93d37c9a7 to your computer and use it in GitHub Desktop.
doc_en = nlp_en(u'Brazil\'s new foreign minister believes climate change is a Marxist plot. He says that China is behind everything.')
doc_pt = nlp_pt(u'Novo ministro das Relações Exteriores do Brasil acredita que as mudanças climáticas são uma conspiração marxista. Para ele, a China está por trás de tudo isso.')
doc_fr = nlp_fr(u'Le nouveau Ministre des Affaires Etrangers brésilien croit que le changement climatique est une conspiration Marxiste. Selon lui, la Chine est derrière tout cela.')
sentences_en = list(doc_en.sents)
sentences_pt = list(doc_pt.sents)
sentences_fr = list(doc_fr.sents)
print(sentences_en)
print(sentences_pt)
print(sentences_fr)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment