r/tensorflow • • Jan 27 '19

Convert HTML Table into JSON data

I'm kinda new to Neural Networks and just started to learn coding them by trying some examples. Two weeks ago I was searching for an interesting challenge and I found one. But I'm about to give up because it seems to be too hard for me... But I was curious to know if anyone of you is able to solve this?

https://stackoverflow.com/questions/54381940/tensorflow-convert-html-table-into-json-data

0 Upvotes

8 comments sorted by

2

u/terminator557 Jan 27 '19

I don't think a neutral network is the right tool for this job, you should probably just find a library that allows you to parse whatever tags you want, in this case a table, and convert it into whatever format you need.

1

u/avejack Jan 27 '19

Because the way the needed data is represented in those ".htm"-files isn't the same for every file. It is unknown. Therefore it is impossible IMO to write one algorithm to parse all possible representations of that data...

2

u/HarambeTownley Jan 27 '19

Why are you using a neural network for this? This is not a machine learning problem. Its simple classical format handing. Just start with an empty json and fill in every row with corresponding column as key.

1

u/avejack Jan 27 '19

Because the way the needed data is represented in those ".htm"-files isn't the same for every file. It is unknown. Therefore it is impossible IMO to write one algorithm to parse all possible representations of that data...

2

u/HarambeTownley Jan 28 '19

Could you upload one of those files?

2

u/TotesMessenger Jan 27 '19

I'm a bot, bleep, bloop. Someone has linked to this thread from another place on reddit:

 If you follow any of the above links, please respect the rules of reddit and don't vote in the other threads. (Info / ^Contact)

5

u/davidshen84 Jan 27 '19

I am pretty sure this has nothing to do with deeplearning, nor tensorflow. This belongs to data preprocessing or ETL.

0

u/avejack Jan 27 '19

IMO: The "deeplearning" part is that you can't write a algorithm to parse those '.htm'-files if the structure is unknown. The information that needs to be extracted from those '.htm'-files isn't presented in the same way all the time - a human would still understand it - which is why i thought it would fit a Neural Network. Or how would you solve this problem?