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
| [ | |
| { | |
| "sentence": "Mais arrêtez donc de dire toujours et encore félicitations.", | |
| "translation": { | |
| "translatedText": "But stop saying 'congratulations' over and over again.", | |
| "verbs": [ | |
| { | |
| "conjugatedForm": "arrêtez", | |
| "infinitive": "arrêter", | |
| "meaning": "to stop; to cease" |
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
| { | |
| "words": [ | |
| { | |
| "word": "mais", | |
| "start": 0, | |
| "end": 0.39999998, | |
| "confidence": 0.9428711, | |
| "punctuated_word": "Mais" | |
| }, | |
| { |
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
| ... | |
| from fastapi.concurrency import run_in_threadpool | |
| ... | |
| def prepare_for_upload_synchronously(): | |
| pass | |
| def upload_to_s3(): |
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
| ... | |
| class TextReplacement(BaseModel): | |
| replaced_text: str = Field(description="The updated text after replacing entities.") | |
| ... | |
| class DemoEnrichmentAgent: | |
| ... | |
| entity_replacer_llm: Runnable |
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
| ... | |
| Agent response: | |
| { | |
| "transcript_text": "Hollywood director Kristoffer Nolen has announced his next big project, rumored to be another complex sci-fi thriller. Fans of Nolen\u2019s earlier work are eager to see if this film will rival the success of \u2018Inceptshun\u2019 or \u2018Dunkrik.\u2019", | |
| "extracted_entities": { | |
| "named_entities": [ | |
| { | |
| "entity_name": "Kristoffer Nolen", | |
| "entity_context": "Hollywood director known for sci-fi thrillers" |