r/LanguageTechnology • • Nov 29 '22

Natural Language Processing Demystified (full course release, no sign-up required)

Hi r/LanguageTechnology:

After a year of work, I published my free NLP course. The course is intended to help anyone who knows Python and a bit of math go from the basics to today's mainstream models and frameworks.

I strive to balance theory and practice, so every module consists of detailed explanations and slides along with a Colab notebook putting the ideas into practice (in most modules).

The course is divided into two parts. In part one, we cover text preprocessing, how to turn text into numbers, and multiple ways to classify and search text using "classical" approaches. And along the way, we'll pick up valuable bits on how to use tools such as spaCy and scikit-learn.

In part two, we dive into deep learning for NLP. We start with neural network fundamentals and go through embeddings and sequence models until we arrive at transformers and the mainstream models of today.

The notebooks cover how to accomplish everyday NLP tasks including extracting key information, document search, text similarity, text classification, finding topics in documents, summarization, translation, generating text, and question answering.

No registration required: https://www.nlpdemystified.org/

127 Upvotes

19 comments sorted by

8

u/ahm_rimer Nov 29 '22

Great, I think I've interacted with your course in some capacity before. Not sure whether it was via this sub or from Google search directly.

One question, considering how the field of NLP or AI in general is making leaps and bounds of progress on scale of months. How are you planning to keep it updated and structure it so that your effort maintains its value for a longer course of time?

6

u/hijacked_mojo Nov 29 '22

Yeah that's a question that crossed my mind several times.

My approach was to focus on core concepts that are slow-changing. For example, the common preprocessing steps will be around for a while, so will building representations from neural networks, etc. Transformers are still going strong.

What's changing really fast are things like model capacity and tweaks to scale and augment models. My goal was to arm people with the ability to keep up with these developments.

My thinking now is that I'll release short-form content when there's a major leap forward. e.g. GPT-4, a new architecture that dethrones transformers, or a library/framework gaining mass adoption.

Thoughts or suggestions on what you'd find useful?

5

u/mysterybasil Nov 29 '22

Very cool, curious, what do you get out of building a free course? Just personal exposure? (sorry, this sounds cynical, but I'm sure you have other things going on in your life not on a computer)

18

u/hijacked_mojo Nov 29 '22

Nah, I think that question makes sense. The motivation changed over time from signaling to building a network to just proving to myself I can ship something hard. I have a history of half-finished projects. This is the first big thing I've ever shipped. It was really challenging and there were multiple plateaus. But now it's out there and I now trust myself that I can build and ship future projects.

3

u/mysterybasil Nov 29 '22

Well, congratulations. I'm definitely in the same, half-finished projects boats. So yeah, I understand how much of a triumph it is to actually get something out the door.

Anyway, I've cloned your repo and started working my way through your videos. Looks great, I'm looking forward to seeing all of it.

3

u/hijacked_mojo Nov 29 '22

Thank you. Let me know if I can help with anything.

3

u/mysterybasil Nov 29 '22

btw, you've got a really great voice, very resonant. honestly

3

u/mysterybasil Nov 29 '22

So, it looks like you are using spaCy for your NLP processing - which is a new libarary to me.

- How do basic nlp tasks in spaCy differ from nltk and why did you choose spaCy?

- Does spaCy do the more advanced, transformer based processing like the huggingface libriaries? Since I'm not at that part of the course yet, what do you use there and why?

I'm just trying to get a sense of why you made the choices you did, so I know what reasons to use one library vs another for my own projects.

5

u/hijacked_mojo Nov 29 '22

IMO, spaCy offers a superior API and is designed for industry use. It lets you do a specific set of tasks that are common in NLP apps (PoS-tagging, NER, etc). NLTK is more of a general string processing library for academic exploration. Because the course focuses on getting NLP-related things done, I went with spaCy.

Yes, spaCy offers transformer-based pipelines that wraps the HuggingFace transformers library.
https://spacy.io/usage/v3#features-transformers

I use spaCy mostly in part one. In part two, I switch to mostly Tensorflow/Keras/Hugging Face because:

  1. There's sizable coverage of neural networks in general that is independent of NLP.

  2. I wanted to show people a variety of tools.

2

u/mysterybasil Nov 29 '22

excellent, thank you

3

u/Whencowsgetsick Nov 29 '22

Hey, just wanted to say I've subscribed to your work for a while. I just haven't had to complete it because of other commitments but in the short stints I've checked it out, it looked good!

2

u/hijacked_mojo Nov 29 '22

Thanks for the note! No worries, the course is going to be up for a while. :-)

2

u/Advanced-Hedgehog-95 Nov 29 '22

You're just brilliant. I am a subscriber of your YouTube channel too.

Thanks

2

u/nattmorker Nov 29 '22

Great, I will definitely check it out! It looks interesting. I'm a mathematician, but I had to learn NLP by myself because of my research, so I like to learn as much as I can.

2

u/workinBuffalo Nov 30 '22

I did the first 5 or 6 a few months ago and they were great. Will check out the rest.

1

u/silver_chief2 Apr 18 '23

I posted this elsewhere. I am not expecting a book length answer. More like "Dragon used buzz(word)1, and buzz2. Now thanks to buzz3 and buzz4 we do buzz5 and buzz6." What sort of hardware accelerator would help, if any? I need terms to search on. I will look into your course.

[D] Looking for terms of art, phrases to steer me toward focused searches for voice dictation/ voice to text using modern tools

DiscussionBackground:
I used to do embedded C, some C++, later Python for fun, took the
Coursera machine learning course (using Octave) long ago, never studied
NLP. I.e. clueless

I wanted to fire up my old Dragon Naturally Speaking again for practical use. Used it for work off and on for many many years.Here is what I thought: All the DNS old patents have lapsed.ML has grown by leaps and bounds. I hear of whisper AI and more. CoralAI TPU? Hardware and memory has grown also.

There must be some open source or cheap alternative to DNS. BTW DNS has
always been retail user hostile/nasty. I said over 15 year ago that I
did not know you could turn cardiologists into an angry mob. No, I am
not MD.

What are some search terms that I could find in coursera to see what is
currently being used and taught. Is it the same as taught in older NLP
courses?Here is what DNS did.Test your mic and voice quality.Speak a provided set of sentences into the training part.

Do your dictation. Including selecting a word or phrase, saying "correct
that" or "spell that" and doing the correction, which DNS apparently
learned.

There were in line escape sequences like maybe "open paren" and "close paren"
or "start cap" and "end cap" and similar for numerals.

0

u/[deleted] Mar 21 '25

[deleted]

1

u/hijacked_mojo Mar 25 '25

I hope it helps!