Add text shown in example of usage (#3464)

This commit is contained in:
Manuel Romero
2020-03-31 13:59:36 +02:00
committed by GitHub
parent 99833a9cbf
commit b48a1f08c1

View File

@@ -66,6 +66,8 @@ nlp_ner = pipeline(
{"use_fast": False} {"use_fast": False}
)) ))
text = 'Mis amigos están pensando viajar a Londres este verano'
nlp_ner(text) nlp_ner(text)
#Output: [{'entity': 'B-LOC', 'score': 0.9998720288276672, 'word': 'Londres'}] #Output: [{'entity': 'B-LOC', 'score': 0.9998720288276672, 'word': 'Londres'}]