Update usage.py
Browse files
usage.py
CHANGED
|
@@ -1,13 +1,6 @@
|
|
| 1 |
|
| 2 |
from transformers import pipeline
|
| 3 |
-
#pipe= pipeline("translation", model="th2en")
|
| 4 |
-
#pipe= pipeline("translation", model="ur2en")
|
| 5 |
pipe= pipeline("translation", model="ko2en")
|
| 6 |
-
#text ="ผมโทรมาจากสำนักงานสรรพากรครับ" #Thai
|
| 7 |
-
#text="میں ٹیکس آفس سے کال کر رہا ہوں۔" #Urdu
|
| 8 |
-
text="I am calling from tax office"
|
| 9 |
-
#text= "मैं कर कार्यालय से फोन कर रहा हूँ"# HINDI
|
| 10 |
-
#text="Jeg ringer fra skattekontoret"
|
| 11 |
text="저는 세무서에서 전화하고 있습니다."
|
| 12 |
result =pipe(text)
|
| 13 |
print( result[0]["translation_text"])
|
|
|
|
| 1 |
|
| 2 |
from transformers import pipeline
|
|
|
|
|
|
|
| 3 |
pipe= pipeline("translation", model="ko2en")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
text="저는 세무서에서 전화하고 있습니다."
|
| 5 |
result =pipe(text)
|
| 6 |
print( result[0]["translation_text"])
|