The original model is at:
https://www.modelscope.cn/models/damo/nlp_csanmt_translation_en2es/summary

## Usage

Option 1: use modelscope library

```
pip install modelscope subword_nmt sacremoses jieba
```

```python
from huggingface_hub import snapshot_download
from modelscope.pipelines import pipeline
from modelscope.utils.constant import Tasks

model_dir = snapshot_download('modelscope-unofficial/damo-csanmt-en-es-base')

pipe = pipeline(task=Tasks.translation, model=model_dir)

input_sequence = 'When I was in my 20s, I saw my very first psychotherapy client.'
outputs = pipe(input=input_sequence)

print(outputs['translation'])  # 'Cuando tenía 20 años, vi a mi primer cliente de psicoterapia.'


batch_input_sequences = [
    "Elon Musk, co-founder and chief executive officer of Tesla Motors.",
    "What's the weather like today?"
]
input_sequence = '<SENT_SPLIT>'.join(batch_input_sequences)
outputs = pipe(input=input_sequence)
print(outputs['translation'].split('<SENT_SPLIT>'))
```


{"license": "apache-2.0", "pipeline_tag": "translation"}
translation license:apache-2.0 region:us
TAGS
#translation #license-apache-2.0 #region-us 

The original model is at:
URL

## Usage

Option 1: use modelscope library






## Usage

Option 1: use modelscope library
TAGS
#translation #license-apache-2.0 #region-us 
 ## Usage

Option 1: use modelscope library