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

xml.etree.ElementTree.ParseError #19

Open
yfangZhang opened this issue Nov 12, 2023 · 1 comment
Open

xml.etree.ElementTree.ParseError #19

yfangZhang opened this issue Nov 12, 2023 · 1 comment

Comments

@yfangZhang
Copy link

Traceback (most recent call last):
File "/public/home/jsj_duanpf/zhyifang/llm4kg/Grapher/main.py", line 170, in
main(args)
File "/public/home/jsj_duanpf/zhyifang/llm4kg/Grapher/main.py", line 40, in main
dm.prepare_data()
File "/public/home/jsj_duanpf/zhyifang/llm4kg/Grapher/data/dataset.py", line 100, in prepare_data
self.prepareWebNLG()
File "/public/home/jsj_duanpf/zhyifang/llm4kg/Grapher/data/dataset.py", line 59, in prepareWebNLG
b.fill_benchmark(files)
File "/public/home/jsj_duanpf/zhyifang/llm4kg/Grapher/corpusreader/benchmark_reader.py", line 144, in fill_benchmark
tree = Et.parse(myfile)
File "/public/home/jsj_duanpf/miniconda3/envs/grapher/lib/python3.9/xml/etree/ElementTree.py", line 1222, in parse
tree.parse(source, parser)
File "/public/home/jsj_duanpf/miniconda3/envs/grapher/lib/python3.9/xml/etree/ElementTree.py", line 580, in parse
self._root = parser._parse_whole(source)
xml.etree.ElementTree.ParseError: syntax error: line 1, column 0

@imelnyk
Copy link
Contributor

imelnyk commented Nov 12, 2023

Hi,
It might be some incorrectly formed string which throws an arrow. Check your input.

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