-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use beta-handling of HTML tags in SUMM.AI API #2263
Comments
The purpose of this change is to preserve the formatting (bold, links) in the translated text, right? As far as I tested, SUMM AI retains HTML tags only in some cases and I couldn't discover the exact logic. For example, if I try to translate the following text in the html mode:
I get the result without the boldface and link:
In addition (sometimes), the arrangement of tags in the text affects the translation result in unexpected ways. For example, if I make 'strong' another word in the text above, I get a different translation 🤔 Request: Result: So, do we still want to introduce this?
Yes, we would need to refactor the way how we prepare the request to SUMM AI, because currently we clean all the tags. And the way how we process the response data, because we will need to adjust the processing of paragraphs. |
Another curious example Input text: Translation result - link is preserved: But for this input text: Translation result - link is lost: |
Was moved to the |
Motivation
SUMM.AI published a beta version with they API which can handle basic HTML input (only links and bold text at the moment) by passing the flag
input_text_type
:https://summai.notion.site/SUMM-API-Documentation-fc41fa5ef1434ad2b311be4876b4685a?p=e8436a4a6d154249a70d32ba45c88e2e&pm=s
Proposed Solution
input_text_type="html"
to the SUMM.AI API callThe text was updated successfully, but these errors were encountered: