I am trying to detect person name or company/institute name from French texts. I have tried the following and the results are not good at all.
import spacy
# or any of the other two models fr_core_news_sm, fr_core_news_lg
nlp = spacy.load("fr_core_news_md")
text ="""Tous les vents,
Balayent les mots de coeur
Moi, j'suis comme le vent:
L'esprit à mille à l'heure,
Je juge sans doute trop vite
C'est ok, tant pis
C'est juste là, je m'agite
Je grandis, l'amour aussi
C'est au gré du vent
Que j'aime vagabonder,
Moi, je suis comme le vent
J'embrasse toute une armée
De rêves et de bleuets,
Me plonger dedans
Je sais ce que je sais
Rapport de: Andre STE-GERMAINE,
"""
doc_fr = nlp_fr(text_fr)
Well, it marked
- "Balayent as PERSON which should not,
- Rapport de: Andre STE-GERMAINE', 'MISC' which should be PERSON
I am not sure if NLTK can help on this.
Is there another better tool to help with this task?
Thanks.