How to connect my custom Task or Agent without polluting source folders of ParlAI?
See original GitHub issueI have already read documentation http://parl.ai/static/docs/task_tutorial.html and http://parl.ai/static/docs/seq2seq_tutorial.html but still trying to find the way how could I use ParlAI in a convenient way. I don’t want to put my sources inside of ParlAI I need to hold them in my own git repository with the rest of my sources. Ideally I’d like to pip install parlai
and extend its functionality with my custom classes as many other frameworks do, but without jumbling sources of my project and ParlAI project together.
Shortly: How to connect my custom Task or Agent without polluting source folders of ParlAI?
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
Tasks and Datasets in ParlAI
Tasks code is located in the parlai/tasks directory. You will need to create a directory for your new task there. If your data...
Read more >Tips and Tricks — ParlAI Documentation
You can create a private folder in ParlAI with your own custom agents and tasks, create your own model zoo, and manage it...
Read more >Tasks — ParlAI Documentation
Custom processing of the Google SGD dataset into In-Domain and Out-of-Domain splits for the use of zero and few-shotting with other task-oriented data....
Read more >ParlAI Quick-start
You can easily and quickly build a model agent by creating a class which implements only these two functions with the most typical...
Read more >parlai.core.teachers — ParlAI Documentation
FixedDialogTeacher (opt, shared=None)[source]¶. Bases: parlai.core.teachers.Teacher. A teacher agent for all teachers involved in tasks with fixed data.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
#605 This seems relevant to the integrating OpenNMT-py
Feedback would be great–let us know how it works out!
One option is also that we could potentially modify the train_model.py loop (for example) to make it easier for you to call the main function from within your own script–that is to say, if you copy and pasted the entire file and found you only changed a line or two, we could possible make that a parameter so that it’s easier to just call that loop. This would set us up better for the pip install in the future.
Thanks!