| from transformers import pipeline | |
| pipe= pipeline("translation", model="zh2en") | |
| text="我从税务局打来" | |
| result =pipe(text) | |
| print( result[0]["translation_text"]) |
| from transformers import pipeline | |
| pipe= pipeline("translation", model="zh2en") | |
| text="我从税务局打来" | |
| result =pipe(text) | |
| print( result[0]["translation_text"]) |