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

a porblem need to be solve #120

Open
LeningWang opened this issue Jan 8, 2023 · 11 comments
Open

a porblem need to be solve #120

LeningWang opened this issue Jan 8, 2023 · 11 comments

Comments

@LeningWang
Copy link

line = [float(i) for i in line]

ValueError: could not convert string to float: '780.0\t1.0\t8.46\t3.59'

thanks

@Jhfyut
Copy link

Jhfyut commented Jun 6, 2023

Hello, I also met the same problem. Have you solved it

@seuwky1021
Copy link

下面split分割数组的时候,里面换成split('\t')

@aresa66
Copy link

aresa66 commented Nov 9, 2023

下面split分割数组的时候,里面换成split('\t')

Hello can you please more introduce me about this issue. Thanks

@aresa66
Copy link

aresa66 commented Nov 9, 2023

Hello, I also met the same problem. Have you solved it

Did you solve this?
thanks

@aresa66
Copy link

aresa66 commented Nov 9, 2023

line = [float(i) for i in line]

ValueError: could not convert string to float: '780.0\t1.0\t8.46\t3.59'

thanks

Hi did you reached to solution about this?

@seuwky1021
Copy link

seuwky1021 commented Nov 10, 2023 via email

@aresa66
Copy link

aresa66 commented Nov 10, 2023

下面split分割数组的时候,里面换成split('\t')
when you use 'split' to split array, use 'split('\t')'. This means using tabs to divide a row into arrays.
If you still don't understand, I can send you my code.
Best wishes.

------------------ 原始邮件 ------------------
发件人: "agrimgupta92/sgan" @.>;
发送时间: 2023年11月9日(星期四) 晚上8:14
@.
>;
@.@.>;
主题: Re: [agrimgupta92/sgan] a porblem need to be solve (Issue #120)

下面split分割数组的时候,里面换成split('\t')

Hello can you please more introduce me about this issue. Thanks


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: @.***>

Hi again
Thanks for your answer.
Yes please if I can see your code I will be better understanding about this issue.
Regards

@Jhfyut
Copy link

Jhfyut commented Nov 10, 2023

Hello, I also met the same problem. Have you solved it

Did you solve this? thanks
line = line.strip().split(delim)---->line = line.strip().split('\t')

@aresa66
Copy link

aresa66 commented Nov 14, 2023

下面split分割数组的时候,里面换成split('\t')
when you use 'split' to split array, use 'split('\t')'. This means using tabs to divide a row into arrays.
If you still don't understand, I can send you my code.
Best wishes.

------------------ 原始邮件 ------------------
发件人: "agrimgupta92/sgan" @.>;
发送时间: 2023年11月9日(星期四) 晚上8:14
@.
>;
@.@.>;
主题: Re: [agrimgupta92/sgan] a porblem need to be solve (Issue #120)

下面split分割数组的时候,里面换成split('\t')

Hello can you please more introduce me about this issue. Thanks


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: @.***>

Hi sorry but I didn't understand your comment. Can I have this part of your code?
Thanks

@Seazoned
Copy link

I met this problem, too. And I finally found the problem is the default parameter 'delim' was set to ' '(space)instead of '/t' in train.py, like:
parser.add_argument('--delim', default=' ')
Maybe you should set it to '/t'.

@SreekarBasa
Copy link

I met this problem, too. And I finally found the problem is the default parameter 'delim' was set to ' '(space)instead of '/t' in train.py, like: parser.add_argument('--delim', default=' ') Maybe you should set it to '/t'.

It worked Thanks!!

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

6 participants