Skip to content

Commit

Permalink
Merge pull request #504 from aws-solutions/fix/lexv2-rebuild-fail-on-…
Browse files Browse the repository at this point in the history
…short-utterances

Fixes #503 - Lex rebuild fails when there is any single character utterance
  • Loading branch information
tabdunabi authored Oct 11, 2022
2 parents 9d0368e + 9116d4c commit ede14e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lambda/lexv2-build/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ def translate_text(localeId, text):
translatedText = text
else:
print(f"Utterance {text} too short to translate - using original.")
translatedUtterance = text
translatedText = text
print(f"Translated utterance: {text} -> {translatedText}")
return translatedText

Expand Down

0 comments on commit ede14e1

Please sign in to comment.