Skip to content

Commit

Permalink
Fix an error in the lemmatizer training script
Browse files Browse the repository at this point in the history
  • Loading branch information
AngledLuffa committed Nov 25, 2024
1 parent a877a3c commit 081d1dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stanza/utils/training/run_lemma.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def build_model_filename(paths, short_name, command_args, extra_args):
train_file = f"{lemma_dir}/{short_name}.train.in.conllu"

if not os.path.exists(train_file):
logger.debug("Treebank %s is not prepared for training the lemmatizer. Could not find any training data at %s Cannot figure out the expected save_name without looking at the data, but a later step in the process will skip the training anyway" % (treebank, train_file))
logger.debug("Treebank %s is not prepared for training the lemmatizer. Could not find any training data at %s Cannot figure out the expected save_name without looking at the data, but a later step in the process will skip the training anyway" % (short_name, train_file))
return None

has_lemmas = check_lemmas(train_file)
Expand Down

0 comments on commit 081d1dc

Please sign in to comment.