feat: Develop a Real-Time Translation Service for Court Orders (English to Indic Languages) (#1603) - #1647
Open
knoxiboy wants to merge 1 commit into
Conversation
|
@knoxiboy is attempting to deploy a commit to the CodeBlooded's projects Team on Vercel. A member of the Team first needs to authorize it. |
Contributor
|
Hi @knoxiboy, thanks for contributing to Nyay Setu! 🎉 I have automatically:
Our workflows will now analyze your changes to classify:
Tip Ensure your PR description references the issue it resolves (e.g. Happy coding! 🚀 |
Contributor
Author
|
Hi @viru0909-dev 👋 I have resolved all merge conflicts with the latest main branch, completed a detailed code quality & security audit, verified requirement alignment, and confirmed all unit tests pass cleanly. This PR is completely up-to-date and mergeable. Please review and merge when convenient. Thank you! |
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.
Pull Request
Description
Implements a real-time translation service for court orders from English to target Indic languages (such as Hindi, Tamil, Telugu, Bengali, Marathi, and Gujarati). This service preserves key statutory terms and legal citations during processing and provides API endpoints for real-time legal document translation.
Changes:
nlp-orchestrator/services/translation_service.py: CreatedCourtOrderTranslatorservice supporting multi-target Indic translation, legal term dictionary protection, and text chunking.nlp-orchestrator/routers/translation_router.py: Created FastAPI endpoint/api/v1/translate/court-orderfor handling court order translation requests.nlp-orchestrator/tests/test_translation_service.py: Added pytest suite validating translation logic, legal term preservation, supported language queries, and API response structures.Closes #1603
Type of change
Checklist: