HIT-SCIR / plm-nlp-code

Apache License 2.0
626 stars 195 forks source link

中文繁简转换的配置文件t2s.json #11

Closed renmengjie7 closed 2 years ago

renmengjie7 commented 2 years ago

请问第三章中文繁简转换的配置文件t2s.json上传了嘛?(在书的64页)GitHub上我没找着

ymcui commented 2 years ago
{
  "name": "Traditional Chinese to Simplified Chinese",
  "segmentation": {
    "type": "mmseg",
    "dict": {
      "type": "ocd2",
      "file": "TSPhrases.ocd2"
    }
  },
  "conversion_chain": [{
    "dict": {
      "type": "group",
      "dicts": [{
        "type": "ocd2",
        "file": "TSPhrases.ocd2"
      }, {
        "type": "ocd2",
        "file": "TSCharacters.ocd2"
      }]
    }
  }]
}
ymcui commented 2 years ago

https://github.com/HIT-SCIR/plm-nlp-code/blob/main/chp3/t2s.json