In italiano non trova le entità import pandas as pd
import spacy_annotator as spa
import spacy
import spacy.cli
#spacy.cli.download("it_core_news_md")



#nlp = spacy.load("en_core_web_sm")
nlp = spacy.load('it_core_news_md') 



df = pd.DataFrame({
    "text": [
        "B4ESQ AUTOSTORE S.R.L.S. 000000304498496 BEVERAGE STORE DI MOCERI DOROTEA V/ORDINE E CONTO DESCR.OPERAZIONE SCT:NAME_1 FT. 1044 DEL 04/06/22<* > IDENTIFICATIVO SCT:06230760979159054",
        "Stockholm is too cold. NAME_2 says so."
    ]})

df

annotator = spa.Annotator(labels=["GPE", "PERSON"], model=nlp)

df_labels = annotator.annotate(df=df, col_text="text",shuffle=True )

df_labels

