Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin' into pseudonymization-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fexfl committed Oct 29, 2024
2 parents bb07b5e + f8e9afd commit 7a9defb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions mailcom/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,13 @@ def init_spacy(self, language: str, model="default"):
def init_transformers(
self,
model="xlm-roberta-large-finetuned-conll03-english",
model_revision_number="default",
model_revision_number="18f95e9",
):
# TODO: Model revision number

# ner_recognizer = pipeline("token-classification")
self.ner_recognizer = pipeline(
"token-classification", model=model, aggregation_strategy="simple"
"token-classification",
model=model,
revision=model_revision_number,
aggregation_strategy="simple",
)

def reset(self):
Expand Down

0 comments on commit 7a9defb

Please sign in to comment.