Skip to content

Commit

Permalink
doc(README): update readme about lang_map and default_lang
Browse files Browse the repository at this point in the history
  • Loading branch information
DoodleBears committed Jul 3, 2024
1 parent 5c96767 commit d7b4e5c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,11 +194,13 @@ the `threshold` is used for `WtP` and `SaT` models, default to `1e-4`, the small
- if you set `default_lang` or `value` of `key:value` in `lang_map` to `x`, this substring will be merged to the near substring
- `zh` | `x` | `jp` -> `zh` | `jp` (`x` been merged to one side)
- In example below, `zh-tw` is set to `x` because character in `zh` and `jp` sometimes been detected as Traditional Chinese
- default `default_lang` is `'en'`
- default `default_lang` is `x`

```python
LANG_MAP = {
"zh": "zh",
"yue": "zh", # 粤语
"wuu": "zh", # 吴语
"zh-cn": "zh",
"zh-tw": "x",
"ko": "ko",
Expand All @@ -207,7 +209,7 @@ LANG_MAP = {
"fr": "fr",
"en": "en",
}
DEFAULT_LANG = "en"
DEFAULT_LANG = "x"
```

# 4. Acknowledgement
Expand Down

0 comments on commit d7b4e5c

Please sign in to comment.