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

How to work with JSON lines database? #43

Open
yukiarimo opened this issue Jan 26, 2023 · 1 comment
Open

How to work with JSON lines database? #43

yukiarimo opened this issue Jan 26, 2023 · 1 comment

Comments

@yukiarimo
Copy link

Hello. I downloaded all files. And all of them are just a randomly answers in JSON format. So, I want to train my own tensorflow.js model using this database! But, I don't have a question database here. So, what I need to do?

@allosharma
Copy link

Hi @yukiarimo,

You can read the JSON file using the following code, then you can you your model to train the data.

import pandas as pd

#Following line will read json file using pandas
json_data = pd.read_json('json_file_path', lines=True)

#Display the data
json_data.head(5)

I hope this helps.

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