Add timo interface for model serving#13
Merged
Merged
Conversation
8969e11 to
b664501
Compare
b664501 to
fca2d47
Compare
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.
9523052 to
2126505
Compare
Drop result and original_compound_surname from Prediction; keep format_pattern, success, error_message. Update converter and tests.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
sinonym/timo/package:interface.py(Instance, Prediction, Predictor),config.yaml, integration testpredict_batch()analyzes the whole batch jointly (analyze_name_batch) and returns onePredictionper name withsurname/given_name/middle_name, per-nameconfidence, and the shared batchformat_patternpydanticis now a core dependency (the interface requires it)analyze_name_batch,process_name_batch,detect_batch_format,score_name_batch,process_name_batch_multiprocessTest plan
pytest sinonym/timo/integration_test.py tests/test_timo_interface.py— 19 tests passtimo publish/aws s3 cp config.yaml ...) before deploy