Skip to content

Commit

Permalink
delete torch dep
Browse files Browse the repository at this point in the history
  • Loading branch information
Simona Mazzarino committed Jan 29, 2024
1 parent e71dafa commit fa29091
Show file tree
Hide file tree
Showing 4 changed files with 343 additions and 709 deletions.
9 changes: 8 additions & 1 deletion nerpii/named_entity_recognizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,14 @@
)
from presidio_analyzer.nlp_engine import NlpEngineProvider
import spacy
from transformers import AutoModelForTokenClassification, AutoTokenizer, pipeline
from transformers import (
AutoModelForTokenClassification,
AutoTokenizer,
logging,
pipeline,
)

logging.set_verbosity_error()


# è importante eseguire prima assign_entities_with_presidio, poi
Expand Down
Loading

0 comments on commit fa29091

Please sign in to comment.