Support eval-mode loading of an arbitrary model path via -modelPath by cboulanger · Pull Request #1389 · grobidOrg/grobid (original) (raw)
…Path
Extend the CRF evaluation path so that TrainerRunner's existing -modelPath flag works for mode=EVAL (previously it only applied to training output).
Changes:
- WapitiTagger: add File-based constructor delegating to WapitiModel(File)
- TaggerFactory: add getTaggerFromPath(File, GrobidCRFEngine) — uncached, currently Wapiti-only
- AbstractTrainer: add evaluationModelPath field + setEvaluationModelPath() setter; getTagger() uses TaggerFactory.getTaggerFromPath() when set
- TrainerRunner: route -modelPath to setEvaluationModelPath() when mode is EVAL; training modes continue to use setOutputModelPath() as before
Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com
requested changes Mar 7, 2026
lfoppiano changed the title
feat: support eval-mode loading of an arbitrary model path via -modelPath Support eval-mode loading of an arbitrary model path via -modelPath
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
[ Show hidden characters]({{ revealButtonHref }})