mirror of
https://github.com/modelscope/modelscope.git
synced 2025-12-25 04:29:22 +01:00
translation evaluation pipeline
This commit is contained in:
@@ -42,7 +42,11 @@ class TranslationEvaluationPipeline(Pipeline):
|
||||
`"EvaluationMode.SRC"`, `"EvaluationMode.REF"`. Aside from hypothesis, the
|
||||
source/reference/source+reference can be presented during evaluation.
|
||||
"""
|
||||
super().__init__(model=model, preprocessor=preprocessor, **kwargs)
|
||||
super().__init__(
|
||||
model=model,
|
||||
preprocessor=preprocessor,
|
||||
compile=kwargs.pop('compile', False),
|
||||
compile_options=kwargs.pop('compile_options', {}))
|
||||
|
||||
self.eval_mode = eval_mode
|
||||
self.checking_eval_mode()
|
||||
|
||||
Reference in New Issue
Block a user