Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuawe committed Feb 16, 2024
1 parent 5af8a6f commit c292da7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/delphi/eval/token_labelling.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,11 +165,11 @@ def label_batch_sentences(
corresponding token length where each entry provides the labels/categories
for the token. Sentence -> Token -> Labels
"""
global NLP
global NLP, SPACY_MODEL

if NLP is None:
# Load english language model
NLP = spacy.load("en_core_web_trf")
NLP = spacy.load(SPACY_MODEL)
# labelled tokens, list holding sentences holding tokens holding corresponding token labels
labelled_sentences: list[list[dict[str, bool]]] = list()

Expand Down

0 comments on commit c292da7

Please sign in to comment.