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

MemoryError: Unable to parse large HILDA output files #3

Open
Syauri opened this issue Apr 16, 2020 · 4 comments
Open

MemoryError: Unable to parse large HILDA output files #3

Syauri opened this issue Apr 16, 2020 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@Syauri
Copy link

Syauri commented Apr 16, 2020

While the rst-converter-service is able to convert many of the hilda output files generated using feng-hirst-rst-parser but it is giving me memory issue for some. This is what I see:

{"error":"<class 'discoursegraphs.readwrite.rst.hilda.HILDARSTTree'> can't handle input file 'A02.txt'. Got: ","traceback":"Traceback (most recent call last):\n File \"app.py\", line 111, in post\n tree = read_function(temp_inputfile.name)\n File \"/usr/lib/python2.7/site-packages/discoursegraphs/readwrite/rst/hilda.py\", line 33, in __init__\n self.hildafile_tree = self.hildastr2hildatree(hilda_str)\n File \"/usr/lib/python2.7/site-packages/discoursegraphs/readwrite/rst/hilda.py\", line 56, in hildastr2hildatree\n return eval(parented_tree_str)\nMemoryError\n"}

@arne-cl
Copy link
Collaborator

arne-cl commented Apr 18, 2020

Dear @Syauri,

I would need one of the input files that causes the memory issues in order to debug this.

Best,
Arne

@Syauri
Copy link
Author

Syauri commented Apr 18, 2020

Here is a file I am getting MemoryError for: A02.txt

@arne-cl
Copy link
Collaborator

arne-cl commented Apr 18, 2020

A02.txt is a plain text file. Please send me the parsed file and let me know what you would like to convert it into.

@Syauri
Copy link
Author

Syauri commented Apr 18, 2020

Here is the parsed file and I wanted to convert to rs3.
A02.txt

@arne-cl arne-cl self-assigned this Jun 1, 2020
@arne-cl arne-cl added the bug Something isn't working label Jun 1, 2020
@arne-cl arne-cl changed the title Unable to convert hilda output file from feng-hirst-rst-parser MemoryError: Unable to parse large HILDA output files Jun 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants