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

check_xml #1

Open
iohanzee opened this issue Dec 3, 2019 · 1 comment
Open

check_xml #1

iohanzee opened this issue Dec 3, 2019 · 1 comment

Comments

@iohanzee
Copy link

iohanzee commented Dec 3, 2019

for xml_file in truth.split ('\n:'):

for xml_file in truth.split ('\n:'):
File "", line 1
for xml_file in truth.split ('\n:'):
^
SyntaxError: unexpected EOF while parsing

Please along with this explain me the code
as im trying to append multiple xml files in one csv

@HamedBabaei
Copy link
Owner

HamedBabaei commented Apr 1, 2020

Hi @iohanzee

sorry for the late reply
to be more clear....the truth is the path to the grand truth text file which consists of all train document-names and their labels (this file is plain text) so with their name, we were able to access to that collection of tweets for that user and ...
and here I think EOF error is happening because of '\n:' (it is not able to find this pattern to split text till the end of file) please remove : and try with '\n'

for xml_file in truth.split ('\n'):

Best,
Hamed

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

2 participants