CrashCourse · @crashcourse

Natural Language Processing: Crash Course Computer Science #36

Uploaded June 8, 2018 · Length 11:50

Natural Language Processing: Crash Course Computer Science #36

Summary

This video explains Natural Language Processing (NLP), how computers understand human language through parsing, grammar rules, and speech recognition.

  • natural language processing
  • nlp explained
  • computer science linguistics
  • speech recognition
  • parse trees
  • chatbots

Transcript preview

The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.

  1. 0:03

    Hi, I’m Carrie Anne, and welcome to Crash Course Computer Science!

  2. 0:06

    Last episode we talked about computer vision – giving computers the ability to see and

  3. 0:09

    understand visual information.

  4. 0:11

    Today we’re going to talk about how to give computers the ability to understand language.

  5. 0:15

    You might argue they’ve always had this capability.

  6. 0:17

    Back in Episodes 9 and 12, we talked about machine language instructions, as well as

  7. 0:21

    higher-level programming languages.

  8. 0:23

    While these certainly meet the definition of a language, they also tend to have small

  9. 0:26

    vocabularies and follow highly structured conventions.

  10. 0:30

    Code will only compile and run if it’s 100 percent free of spelling and syntactic errors.

  11. 0:35

    Of course, this is quite different from human languages – what are called natural languages

  12. 0:38

    – containing large, diverse vocabularies, words with several different meanings, speakers

  13. 0:43

    with different accents, and all sorts of interesting word play.

  14. 0:46

    People also make linguistic faux pas when writing and speaking, like slurring words

  15. 0:51

    together, leaving out key details so things are ambiguous, and mispronouncing things.

  16. 0:54

    But, for the most part, humans can roll right through these challenges.

  17. 0:58

    The skillful use of language is a major part of what makes us human.

  18. 1:01

    And for this reason, the desire for computers to understand and speak our language has been

  19. 1:05

    around since they were first conceived.

  20. 1:08

    This led to the creation of Natural Language Processing, or NLP, an interdisciplinary field

  21. 1:13

    combining computer science and linguistics.

  22. 1:15

    INTRO

  23. 1:24

    There’s an essentially infinite number of ways to arrange words in a sentence.

  24. 1:28

    We can’t give computers a dictionary of all possible sentences to help them understand

  25. 1:32

    what humans are blabbing on about.

  26. 1:34

    So an early and fundamental NLP problem was deconstructing sentences into bite-sized pieces,

  27. 1:39

    which could be more easily processed.

  28. 1:41

    In school, you learned about nine fundamental types of English words: nouns, pronouns, articles,

  29. 1:46

    verbs, adjectives, adverbs, prepositions, conjunctions, and interjections.

  30. 1:50

    These are called parts of speech.

  31. 1:52

    There are all sorts of subcategories too, like singular vs. plural nouns and superlative

  32. 1:56

    vs. comparative adverbs, but we’re not going to get into that.

  33. 1:59

    Knowing a word’s type is definitely useful, but unfortunately, there are a lot words that