mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-04 20:03:13 +03:00
Fix formatting
This commit is contained in:
parent
98c35d2585
commit
ce98fa7934
|
@ -17,14 +17,14 @@ numpy.random.seed(0)
|
||||||
|
|
||||||
|
|
||||||
@plac.annotations(
|
@plac.annotations(
|
||||||
model=("Model name or path", "positional", None, str),
|
model=("model name or path", "positional", None, str),
|
||||||
data_path=("Location of JSON-formatted evaluation data", "positional",
|
data_path=("location of JSON-formatted evaluation data", "positional",
|
||||||
None, str),
|
None, str),
|
||||||
gold_preproc=("Use gold preprocessing", "flag", "G", bool),
|
gold_preproc=("use gold preprocessing", "flag", "G", bool),
|
||||||
gpu_id=("Use GPU", "option", "g", int),
|
gpu_id=("use GPU", "option", "g", int),
|
||||||
displacy_path=("Directory to output rendered parses as HTML", "option",
|
displacy_path=("directory to output rendered parses as HTML", "option",
|
||||||
"dp", str),
|
"dp", str),
|
||||||
displacy_limit=("Limit of parses to render as HTML", "option", "dl", int))
|
displacy_limit=("limit of parses to render as HTML", "option", "dl", int))
|
||||||
def evaluate(cmd, model, data_path, gpu_id=-1, gold_preproc=False,
|
def evaluate(cmd, model, data_path, gpu_id=-1, gold_preproc=False,
|
||||||
displacy_path=None, displacy_limit=25):
|
displacy_path=None, displacy_limit=25):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user