question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to connect my custom Task or Agent without polluting source folders of ParlAI?

See original GitHub issue

I 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:closed
  • Created 6 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Henry-Ecommented, Jun 11, 2018

#605 This seems relevant to the integrating OpenNMT-py

1reaction
alexholdenmillercommented, Sep 14, 2017

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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found