Skip to content

Commit

Permalink
Merge pull request #11 from Ulas-Scan/develop
Browse files Browse the repository at this point in the history
feat: unused translation en to id function
  • Loading branch information
iyoubee authored Jun 12, 2024
2 parents e78d5f2 + eddc33f commit d4c0ff5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ def translate_to_indo(text):
return translated_text

def predict_sentiment(text, tokenizer, model, max_length):
translated_text = translate_to_indo(text)
# translated_text = translate_to_indo(text)
tokenized_text = tokenizer(
text=translated_text,
text=text,
add_special_tokens=True,
max_length=max_length,
truncation=True,
Expand Down

0 comments on commit d4c0ff5

Please sign in to comment.