Skip to content

简体单字 Unigram(1-gram)语言模型,参数适配虎码单字整句方案

License

Notifications You must be signed in to change notification settings

hertz-hwang/zh-hans-t-tiger-ugc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Example

__include: /octagram/enable_for_tiger
octagram:
  disable: # 禁用octagram
    __patch:
      grammar: {}
  enable_for_tiger: # 参数较极端,仅适用于虎单整句方案,音码方案不建议尝试
    __patch:
      grammar:
        language: zh-hans-t-tiger-ugc
        collocation_max_length: 2
        collocation_min_length: 1
        collocation_penalty: -10
        non_collocation_penalty: -5
        #weak_collocation_penalty: -24
        #rear_penalty: -18
      translator/+:
        contextual_suggestions: true
        max_homophones: 1
        max_homographs: 1

效果参考

关闭语言模型

0-1 0-2 0-3 0-4

开启语言模型

1-1 1-2 1-3 1-4

About

简体单字 Unigram(1-gram)语言模型,参数适配虎码单字整句方案

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published