ComfyUI Node
PJ Text Translator (Bi-Directional)
A ComfyUI node in PJ_Nodes/Text with 8 inputs and 2 outputs.
PJ Text Translator (Bi-Directional)
- text
- original_text
◄text►
◄modeAuto (智能双向检测)►
◄model▾►
◄deviceauto►
◄clean_punctuationtrue►
◄keep_in_memorytrue►
◄prefix►
◄suffix►
CategoryPJ_Nodes/Text
Inputs (8)
| Name | Type | Default | Description |
|---|---|---|---|
| text | STRING | — | |
| mode | COMBO | Auto (智能双向检测) | 3 options: Auto (智能双向检测), ZH -> EN (中译英), EN -> ZH (英译中) |
| model | COMBO | 1 options: Auto / opus-mt-zh-en (自动检测/自动下载) | |
| device | COMBO | auto | 3 options: auto, cuda, cpu |
| clean_punctuation | BOOLEAN | true | — |
| keep_in_memory | BOOLEAN | true | — |
| prefixopt | STRING | — | |
| suffixopt | STRING | — |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| text | STRING | — |
| original_text | STRING | — |