-
Notifications
You must be signed in to change notification settings - Fork 37
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 create dataset to train in GPL from normal set of domain specific word docs or pdfs. #3
Comments
Hi @kingafy, GPL needs only a corpus.jsonl file (data sample is here) for minimal running. Specifically, you need three steps:
python -m gpl.train \
--path_to_generated_data "generated" \
--output_dir "output" I will include more explanations about this in the readme in the future. |
I get this error:
Script:
generated data comes from the suggested example (only corpus.jsonl in the folder). |
anyone have any luck? |
Hi @christopherfeld, could you please try this toy example: #5 (comment) and let me know whether it is runnable in your case? |
No luck. To give some baseline... I tried your code from April 14, above to no avail. I tried the toy example from the comment above to no avail. My folder structure looks like this:
code (per your request: #5 (comment)): Thoughts: |
Hi @christopherfeld, I have created a google colab notebook showing the running results of the toy example: https://colab.research.google.com/drive/1Wis4WugIvpnSAc7F7HGBkB38lGvNHTtX?usp=sharing Please have a look:). BTW, I think the error might be due to the |
thanks! I ran this on my personal M1 and it works! Now am just waiting on my work Mac to get here :) |
First of all thanks a lot for bringing out this unique paper. After going through the paper I wanted to try out this approach but am little confused with the initial data to be created for training in GPL. Currently all my domain corpus content are in Word files or pdf and I don't have any labelled data ,As your paper claims it can be used for unlabeled data can you please guide how to create the initial input data to pass through this Method. Also kindly share if you have any pretrained models available to experiment the method?
The text was updated successfully, but these errors were encountered: