Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

新增涂改算法 #49

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

新增涂改算法 #49

wants to merge 3 commits into from

Conversation

14790897
Copy link

@14790897 14790897 commented Sep 1, 2023

原理:先从输入文本中随机挑选一个字符(非end_chars)输出,然后在上面画一道斜线表示涂改,接着在旁边写下原来正确的字符

为了增加效果,目前设置是50%的概率进行涂改,同时为了迅速看反响如何,所以并没有将代码按原来的格式修改,如果反响不错,我就继续修改
image

@Gsllchb
Copy link
Owner

Gsllchb commented Sep 1, 2023 via email

@14790897
Copy link
Author

14790897 commented Sep 1, 2023

搞个投票吧

@14790897
Copy link
Author

14790897 commented Sep 7, 2023

  新增参数:
  strikethrough_probability: "涂改出现的几率",
  strikethrough_length_sigma: "涂改线长度的标准差",
  strikethrough_width_sigma: "涂改线宽度的标准差",
  strikethrough_angle_sigma: "涂改线角度的标准差",
  strikethrough_width: "涂改线宽度",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants