Add error hint and default values for alpha and beta.
This commit is contained in:
parent
ef095881ca
commit
9c73700ac7
@ -112,23 +112,26 @@ def main():
|
|||||||
required=True,
|
required=True,
|
||||||
help="Path of vocabulary file. Must contain words separated by whitespace.",
|
help="Path of vocabulary file. Must contain words separated by whitespace.",
|
||||||
)
|
)
|
||||||
parser.add_argument("--package", required=True, help="Path to save scorer package.")
|
parser.add_argument(
|
||||||
|
"--package",
|
||||||
|
required=True,
|
||||||
|
help="Path to save scorer package.")
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--default_alpha",
|
"--default_alpha",
|
||||||
type=float,
|
type=float,
|
||||||
required=True,
|
default=0.75,
|
||||||
help="Default value of alpha hyperparameter.",
|
help="Default value of alpha hyperparameter.",
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--default_beta",
|
"--default_beta",
|
||||||
type=float,
|
type=float,
|
||||||
required=True,
|
default=1.85,
|
||||||
help="Default value of beta hyperparameter.",
|
help="Default value of beta hyperparameter.",
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--force_utf8",
|
"--force_utf8",
|
||||||
default="",
|
default="",
|
||||||
help="Boolean flag, force set or unset UTF-8 mode in the scorer package. If not set, infers from the vocabulary.",
|
help="Boolean flag, force set or unset UTF-8 mode in the scorer package. If not set, infers from the vocabulary. Using this wrong can result in a 'Segmentation fault' error at the model evaluation.",
|
||||||
)
|
)
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user