Skip to content

Commit

Permalink
fix: remove add special token in name detector
Browse files Browse the repository at this point in the history
  • Loading branch information
ledong0110 committed Aug 13, 2024
1 parent 16cfa63 commit 528fbee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vieval/tools/metrics/name_detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def __init__(self, args):
) as f:
token_pattern = f.read().strip()
tokenizer = AutoTokenizer.from_pretrained(
args.metric_config["NERModel"], add_special_tokens=True
args.metric_config["NERModel"],
)
model = AutoModelForTokenClassification.from_pretrained(
args.metric_config["NERModel"]
Expand Down

0 comments on commit 528fbee

Please sign in to comment.