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

字典里面的字符是不是不够啊?除了没有逗号,有时候会出现字典里没有这个汉字。 #93

Open
zhouyupeng973 opened this issue Mar 26, 2024 · 5 comments

Comments

@zhouyupeng973
Copy link


training: 735
文在城关经营旅店和木匠铺二十多年,有房屋四十$
文在城关经营旅店和木匠铺二十多年,有房屋四十$
文在城关经营旅店和木匠铺二十多年,有房屋四十$
文在城关经营旅店和木匠铺二十多年,有房屋四十$
文在城关经营旅店和木匠铺二十多年,有房屋四十$
文在城关经营旅店和木匠铺二十多年,有房屋四十$
文在城关经营旅店和木匠铺二十多年,有房屋四十$
文在城关经营旅店和木匠铺二十多年,有房屋四十$
文在城关经营旅店和木匠铺二十多年,有房屋四十$
文在城关经营旅店和木匠铺二十多年,有房屋四十$
文在城关经营旅店和木匠铺二十多年,有房屋四十$
文在城关经营旅店和木匠铺二十多年,有房屋四十$
文在城关经营旅店和木匠铺二十多年,有房屋四十$
文在城关经营旅店和木匠铺二十多年,有房屋四十$
文在城关经营旅店和木匠铺二十多年,有房屋四十$
文在城关经营旅店和木匠铺二十多年,有房屋四十$
文在城关经营旅店和木匠铺二十多年,有房屋四十$
Traceback (most recent call last):
File "train.py", line 215, in
length, text_input, text_gt, string_label = converter(label)
File "/home/libj/ZYP/image-ids-CTR/util.py", line 118, in converter
text_input[i][j + 1] = alp2num[label[i][j]]
KeyError: ','
(transformer) libj@cqupt:~/ZYP/image-ids-CTR$

@Skywalker-Harrison
Copy link

同问

@zhouyupeng973
Copy link
Author

同问

你好,请问你解决字典的问题了吗?

@Skywalker-Harrison
Copy link

I think we need to add punctuation to the dictionary, otherwise it will be replaced by placeholders, in my case, it is replaced by "START"

@TheLei
Copy link

TheLei commented Jun 8, 2024

同问,您解决了这个问题吗

@Tom98714
Copy link

training: 735 文在城关经营旅店和木匠铺二十多年,有房屋四十$ 文在城关经营旅店和木匠铺二十多年,有房屋四十$ 文在城关经营旅店和木匠铺二十多年,有房屋四十$ 文在城关经营旅店和木匠铺二十多年,有房屋四十$ 文在城关经营旅店和木匠铺二十多年,有房屋四十$ 文在城关经营旅店和木匠铺二十多年,有房屋四十$ 文在城关经营旅店和木匠铺二十多年,有房屋四十$ 文在城关经营旅店和木匠铺二十多年,有房屋四十$ 文在城关经营旅店和木匠铺二十多年,有房屋四十$ 文在城关经营旅店和木匠铺二十多年,有房屋四十$ 文在城关经营旅店和木匠铺二十多年,有房屋四十$ 文在城关经营旅店和木匠铺二十多年,有房屋四十$ 文在城关经营旅店和木匠铺二十多年,有房屋四十$ 文在城关经营旅店和木匠铺二十多年,有房屋四十$ 文在城关经营旅店和木匠铺二十多年,有房屋四十$ 文在城关经营旅店和木匠铺二十多年,有房屋四十$ 文在城关经营旅店和木匠铺二十多年,有房屋四十$ Traceback (most recent call last): File "train.py", line 215, in length, text_input, text_gt, string_label = converter(label) File "/home/libj/ZYP/image-ids-CTR/util.py", line 118, in converter text_input[i][j + 1] = alp2num[label[i][j]] KeyError: ',' (transformer) libj@cqupt:~/ZYP/image-ids-CTR$

你好,请问你的这个问题解决了吗,我也遇到这个问题了

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

No branches or pull requests

4 participants