-
Notifications
You must be signed in to change notification settings - Fork 41
Adding the notebook for quick_start/train.py #157
base: master
Are you sure you want to change the base?
Conversation
currently only the code has been added. TODO: adding the info
The notebook can be viewed here (incase there are problems on github): nbviewer.jupyter.org |
(For allenai/allennlp#5024) |
occurred because of an error in backslashes
This looks really good in notebook format! My one concern is that we'd have two copies of the same information (in the notebook vs in the original guide chapter), which means more difficulty in maintaining. That said, we are striving hard to maintain backwards compatibility moving forward, so it's unlikely we'll have to update any of this anytime soon. @matt-gardner any concerns? |
I don't have any particular objections, because I'm not the one maintaining it =). Seems pretty awkward to be making identical changes in two places if you want to change any content in the guide (assuming you do this for all of the chapters). It doesn't bother me one way or the other if you want to go this route, but finding a way to make one of these auto-generated from the other seems like a much more scalable solution. On the other hand, there are print statements and other binder-specific considerations that you might want to remove when the code goes into a notebook that you run on your own machine, or on colab or something. |
Thanks @epwalsh!
Once I began the work, I felt the same |
I agree @matt-gardner.
Noted |
I will look into how the notebooks can be auto-generated. Thanks a lot for the suggestion @matt-gardner! While writing the content for the colab, I noticed some discrepancies in the code, its explanation on the website, and the current code in For example, the tokenizer in I am going to make a list of the discrepancies observed once the |
@epwalsh can you please once go through your_first_model.ipynb? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So far I just looked over the your_first_model.ipynb
, at it looks really good. I just left a couple minor comments.
"\r\n", | ||
"![dataset-reader.png](https://raw.githubusercontent.com/allenai/allennlp-guide/master/static/part1/your-first-model/dataset-reader.svg)\r\n", | ||
"\r\n", | ||
"The first step for building an NLP application is to read the dataset and represent it with some internal data structure.\r\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The phrase "The first step for building" is also used in the previous section, so it sounds a little repetitive here.
"id": "DQVGPAu0A_iA" | ||
}, | ||
"source": [ | ||
"# class SimpleClassifier(Model)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks a bit weird as the header.. maybe could just call this section "Putting it all together" or something like that.
@epwalsh thanks a lot for your review! I am very sorry for the late reply. Our study workload at the college has increased, and I have not been able to give much attention to any work outside of college. Once it gets completed, I will begin working on your suggestions immediately. |
No rush @ekdnam! |
currently only the code has been added.
the information and content is yet to be added.