• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

grobidOrg / grobid / 23382600672

21 Mar 2026 03:18PM UTC coverage: 38.244% (-0.008%) from 38.252%
23382600672

push

github

web-flow
Support eval-mode loading of an arbitrary model path via -modelPath (#1389)

* feat: support eval-mode loading of an arbitrary model path via -modelPath

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>

* Fix output for custom paths

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>

8188 of 23921 branches covered (34.23%)

Branch coverage included in aggregate %.

17306 of 42741 relevant lines covered (40.49%)

6.62 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/org/grobid/trainer/TrainerRunner.java


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc