Skip to content

Add timo interface for model serving#13

Merged
atalyaalon merged 4 commits into
mainfrom
add-timo-interface
Jun 23, 2026
Merged

Add timo interface for model serving#13
atalyaalon merged 4 commits into
mainfrom
add-timo-interface

Conversation

@atalyaalon

@atalyaalon atalyaalon commented Apr 21, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add sinonym/timo/ package: interface.py (Instance, Prediction, Predictor), config.yaml, integration test
  • predict_batch() analyzes the whole batch jointly (analyze_name_batch) and returns one Prediction per name with surname/given_name/middle_name, per-name confidence, and the shared batch format_pattern
  • pydantic is now a core dependency (the interface requires it)
  • Library helpers also exposed for direct import: analyze_name_batch, process_name_batch, detect_batch_format, score_name_batch, process_name_batch_multiprocess
  • Bump version to 0.2.7

Test plan

  • pytest sinonym/timo/integration_test.py tests/test_timo_interface.py — 19 tests pass
  • Publish to internal PyPI + S3 config registry (timo publish / aws s3 cp config.yaml ...) before deploy

@atalyaalon atalyaalon force-pushed the add-timo-interface branch 2 times, most recently from 8969e11 to b664501 Compare April 21, 2026 18:41
@atalyaalon atalyaalon force-pushed the add-timo-interface branch from b664501 to fca2d47 Compare June 22, 2026 03:31
Exposes sinonym via timo. predict_batch returns one Prediction per name with
result + per-name confidence + shared batch format_pattern (always-on batch
analysis). Also provides library methods (analyze_name_batch, process_name_batch,
detect_batch_format, score_name_batch, multiprocess) for direct importers.
@atalyaalon atalyaalon force-pushed the add-timo-interface branch from 9523052 to 2126505 Compare June 22, 2026 04:17
Drop result and original_compound_surname from Prediction; keep format_pattern,
success, error_message. Update converter and tests.
@atalyaalon atalyaalon requested a review from sergeyf June 22, 2026 16:33

@sergeyf sergeyf left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@atalyaalon atalyaalon merged commit 236f75f into main Jun 23, 2026
2 checks passed
@atalyaalon atalyaalon deleted the add-timo-interface branch June 23, 2026 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants