Skip to content
This repository was archived by the owner on Dec 16, 2022. It is now read-only.

Commit 2cce412

Browse files
authored
fix type in vocab config (#2977)
1 parent 7943b2f commit 2cce412

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

allennlp/common/configuration.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ def configure(full_path: str = '') -> Config:
478478
default_value=False,
479479
comment="whether to extend the existing vocabulary (if you specified one)"),
480480
ConfigItem(name="min_count",
481-
annotation=int,
481+
annotation=Dict[str, int],
482482
default_value=None,
483483
comment="only include tokens that occur at least this many times"),
484484
ConfigItem(name="max_vocab_size",

0 commit comments

Comments
 (0)