|
--- |
|
license: mit |
|
language: |
|
- ko |
|
base_model: |
|
- Darong/BlueT |
|
pipeline_tag: translation |
|
--- |
|
# Model Card for Model ID |
|
|
|
<!-- Provide a quick summary of what the model is/does. --> |
|
λ
Όλ¬Έ λ²μμ νΉνλ μμ΄->νκ΅μ΄ λ²μ λͺ¨λΈμ
λλ€. |
|
|
|
### Model Description |
|
|
|
<!-- Provide a longer summary of what this model is. --> |
|
Darong/BlueT λͺ¨λΈμ κΈ°λ°μΌλ‘ λ
Όλ¬Έμ λν΄ λ―ΈμΈμ‘°μ ν λ²μ λͺ¨λΈμ
λλ€. |
|
μμ΄->νκ΅μ΄ λ²μμ μ§μνλ©°, λ²μ μ λμλ§λ μ€μ ν μ μμ΅λλ€. |
|
|
|
|
|
- **Developed by:** [BlueAI] |
|
- **Model type:** [t5.1.1.base] |
|
- **Language(s) (NLP):** [Korean] |
|
- **License:** [MIT] |
|
- **Finetuned from model [optional]:** [Darong/BlueT] |
|
|
|
## Uses |
|
|
|
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. --> |
|
|
|
## How to Get Started with the Model |
|
|
|
Use the code below to get started with the model. |
|
|
|
```python |
|
from transformers import pipeline, T5TokenizerFast |
|
|
|
tokenizer_name = "paust/pko-t5-base" |
|
tokenizer = T5TokenizerFast.from_pretrained(tokenizer_name) |
|
model_path = 'Darong/BluePaper' |
|
translator = pipeline("translation", model=model_path, tokenizer=tokenizer, max_length=255) |
|
# μμ΄ -> νκ΅μ΄ |
|
prefix = "E2K: " |
|
source = "This model is an English-Korean translation model." |
|
target = translator(prefix + source) |
|
print(target[0]['translation_text']) |
|
|
|
``` |