aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/main.py
Commit message (Collapse)AuthorAgeFilesLines
* refactor: clean up code formatting and improve print messages in main.pyHsiangNianian2026-01-051-63/+20
|
* feat: Implement TRPG NER training and inference script with robust model ↵HsiangNianian2025-12-301-3/+629
| | | | | | | | | | | path detection and enhanced timestamp/speaker handling - Added main training and inference logic in main.py, including CoNLL parsing, tokenization, and model training. - Introduced TRPGParser class for inference with entity aggregation and special handling for timestamps and speakers. - Developed utility functions for converting word-level CoNLL to char-level and saving datasets in various formats. - Added ONNX export functionality for the trained model. - Created a comprehensive requirements.txt and updated pyproject.toml with necessary dependencies. - Implemented tests for ONNX inference to validate model outputs.
* refactor: Refactor code structure for improved readability and maintainabilityHsiangNianian2025-12-291-0/+4