AI-BIMTranslator is a Flask-based API designed for translating simple sentences and matching animation sequences based on input text. It leverages sentence embeddings using the sentence-transformers library for semantic similarity and integrates with the Sea-Lion translation API to provide multilingual translations.
- Match input sentences to predefined animation sequences using semantic search.
- Translate sentences related to height, occupation, or name into Malay, Thai, and Vietnamese.
- Fuzzy matching for known occupations.
- CORS enabled to allow specific frontend clients.
Returns a string with available API routes.
Returns a JSON indicating the server is healthy.
{
"status": "ok"
}Returns the API name/version.
Matches the input sentence with known animation sequences.
curl -i -H "Origin: http://localhost:3000" "https://backend-api-fm4g.onrender.com/match_animation_sequence?sentence=apa%2Cnama"Translates input text related to height, occupation, or name into multiple languages using Sea-Lion API.
curl -i -H "Origin: http://localhost:3000" "https://backend-api-fm4g.onrender.com/form_answer?text_to_translate=DoktorSTOP"curl -i -H "Origin: http://localhost:3000" "https://backend-api-fm4g.onrender.com/form_answer?text_to_translate=AndrewSTOP"curl -i -H "Origin: http://localhost:3000" "https://backend-api-fm4g.onrender.com/form_answer?text_to_translate=117STOP"