r/LanguageTechnology • • Apr 10 '21

Any good NLP roadmap?

I'm a beginner in data science. I would like to have a roadmap to follow and understand the broad extent of this amazing field.

May be it could be difficult to find something specific for NLP. In that case, please share Machine Learning or Data Science roadmaps that you may have.

Beginners of this community would appreciate it!

46 Upvotes

11 comments sorted by

18

u/anish9208 Apr 10 '21

this one is best source for beginner in pytorch and NLP https://github.com/rguthrie3/DeepLearningForNLPInPytorch

11

u/amitness Apr 11 '21

If you're a complete beginner, take the deeplearning.ai NLP series on coursera. They teach you starting from the classic techniques to modern NLP methods.

I personally did CS-224N and then spacy's course. That gives a good base to get started and then you can keep learning more advanced stuff over time.

Here are the NLP courses I have done so far. https://github.com/amitness/learning#be-able-to-implement-nlp-models

1

u/IndianGhanta Apr 11 '21

Thanks for the link, it is quite extensive, one query for a beginner is practising traditional NLP advisable first before deep learning(ntlk book for eg)? Currently to aim for implementing deep learning NLP models in papers I am thinking of reviewing stats/probability(maybe Khanacademy) and learn linear algebra in depth(maths for ML coursera), then take up practical deep learning course like cs224n or fastai Is this a sensible path? I think jumping directly into papers is not advisable

4

u/amitness Apr 11 '21

Depends on your learning style.

I would recommend starting from traditional NLP and not jumping directly into deep learning. Start with simple stuff like "bag of words" -> TF-IDF -> Naive Bayes / LogisticRegression etc.

Instead of learning theory/maths for months, learn those just-in-time. For example, you'll surely encounter Naive Bayes in the traditional NLP pipeline. When you are learning that from a resource, also go deep on the related math parts it is based on(conditional probability, bayes theorem, log-trick to handle overflow when multiplying many small probabilites etc.). And google on how to apply it using scikit-learn to some dataset. That way you'll have all 3 bases covered (how algorithm works + mathematics + application).

1

u/IndianGhanta Apr 11 '21

Depends on your learning style.

Hands on coding is preferred,dont mind theory but can get dry

Instead of learning theory/maths for months, learn those just-in-time. For example, you'll surely encounter Naive Bayes in the traditional NLP pipeline. When you are learning that from a resource, also go deep on the related math parts it is based on(conditional probability, bayes theorem, log-trick to handle overflow when multiplying many small probabilites etc.). And google on how to apply it using scikit-learn to some dataset. That way you'll have all 3 bases covered (how algorithm works + mathematics + application).

Makes sense, i have background in CS,with familiarity with maths for ML (lacking in deep knowledge of linear algebra/statistics) ,have done Intro to ML course, but not much experience in actually using frameworks like Pytorch

7

u/synthphreak Apr 12 '21 edited Apr 12 '21

DO NOT hop straight into papers. If it were that easy, everyone would do it. But machine learning is difficult, and NLP especially so. There is a ton of math and the field is changing every day. So building up the right background is critical to being able to follow along and keep up.

To that end, don't take shortcuts. Do what I did:

Learn math

  1. Khan Academy (KA) algebra

  2. KA univariate calculus

  3. KA linear algebra

  4. KA multivariable calculus

  5. KA basic stats/probability

  6. Somewhat more advanced stats/probability by watching all of Brandon Foltz stats playlists

Learn coding

7. Read Think Python 2e

8. Take Python for Everybody specialization

9. Take Applied Data Science in Python specialization

10. Put down the tutorials and actually write some code. Think of projects, don't have to be anything complex or fancy. Spend a boatload of time reading and replying in r/learnpython, I learn so much there. Download Pythonista 3, Juno, Carnets, etc. on your phone so that you can code anywhere whenever inspiration strikes.

11. Learn the basics of version control using git.

Learn Machine Learning and NLP

12. Take Math for Machine Learning specialization

13. Take Andrew Ng's old ML course, which you can complete in Python using this repo.

14. Take Andrew Ng's new ML specialization which is all about deep learning.

15. Take Andrew Ng's NLP specialization.

16. Skim relevant sections of this book as needed. Keep it handy as it is essentially the bible of NLP.

17. Skim relevant sections of this book as needed. Keep it handy as it is essentially the bible of deep learning.


These steps are fairly thorough, but no single resource will be wholly sufficient to teach you the concepts it covers (except KA algebra, that shit is IN DEPTH!). For example, #10 gives a great overview of linear regression, logistic regression, and feedforward neural networks, but doesn't touch on other common algorithms like random forests or k-nearest neighbors. Similarly, everything in Learn to code section is useful, but there's a lot to learn that isn't covered, like OOP, cloud computing, Unix scripting, etc. So use this list as a rough syllabus to provide structure and sequence, but always supplement the current step with other resources as needed, such as articles/blog posts, relevant YouTube videos, posting on Reddit, and academic papers if you're ready. The more you do this, the more you will develop a sense for when you have mastered a topic and can move on, versus when you might still have gaps to fill in. The internet has everything you'll ever need, you just have to find it at the right time.

I began from a background of zero programming ability and basically nonexistent quantitative skills. However after creating and following this template super, super diligently, I managed to find a job as an NLP engineer at a large company after about 2 years of study. With elbow grease and bit of luck, you'll be able to do the same.

1

u/XLeyz Mar 27 '23

Hey, I apologize for reviving this ancient post, but, two years of technological progress later, is there anything new you feel would belong in this satisfactory guide of yours? Or is it still as relatable as ever?

1

u/synthphreak Mar 27 '23

Still relatable.

In the last year and change there have not been any developments so ground-breaking that they require updating this roadmap. This roadmap just covers the fundamentals, which probably won’t change for a while.

Of course there have been developments, such as further tweaks to the BERT-derivative architectures. But if you are at the level of following this syllabus, you don’t need to worry about things to that degree of detail. Gotta walk before you run.

1

u/XLeyz Mar 28 '23

Thank you, I guess it’s time to crawl.

1

u/synthphreak Mar 28 '23

Haha, I feel your pain. But future self will thank you tremendously.

6

u/lotonototo Apr 11 '21

A very well written introductory book: https://web.stanford.edu/~jurafsky/slp3/ The math looks scary at first, but it's not so bad.