Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Facebook Dev-C Meetup| NLP & Architecture

Avatar for _luay _luay
October 27, 2017

Facebook Dev-C Meetup| NLP & Architecture

Avatar for _luay

_luay

October 27, 2017

More Decks by _luay

Other Decks in Programming

Transcript

  1. Word Tokenization From “my dog hasn't any fleas.” To [

    ‘my’, ‘dog’, ‘has’, ’n’\t’, ‘any’, ‘fleas’, ‘.’ ]
  2. Word Token vs Word Type • Word Token: Total number

    of words in a given sentence, regardless how often they are repeated. • Word Type: Total Number of Distinct words in a sentence.
  3. Example The cushions are new and I can experience the

    comfort well. Tokens: 11 Types: 10
  4. Stemming Stemmers: Identifying the root word from a token. (e.g

    fishing, fished, and fisher) their root is “fish”
  5. Algorithms Porter. (Most commonly used, less aggressive, computational intensive) e.g

    “animal -> anim”, “any -> ani“ Lancaster. (Very aggressive) e.g “animal -> anim”, “any -> any”
  6. What’s Meant By • I want to read a book.

    • I want to eat sandwich. • I want to play football.
  7. What’s Meant By • I want to read that book.

    • I read that book. • Did you read that book ? • Can you get me a book to read ? • I don’t want to read that book.
  8. Identify Question Sentences • Do you have my pen? •

    How old are you? • What is your name?
  9. Sentences With Numeric Values • I am 23 years old.

    • I am twenty three years old. • I am the twenty third.
  10. Identify Sentence Pronouns • Can you help me. • What

    are you reading today. • Did you read thinking fast and slow. • Remind me tomorrow at 9 AM.
  11. What’s Meant By • I want to read that book.

    • I read that book. • Did you read that book ? • Can you get me a book to read ? • I don’t want to read that book.
  12. Type of classifiers that are used for NLP • Naive

    Bayes. • Logistic regression. • Support-vector machines. • k-Nearest Neighbors.
  13. What’s Meant By • I want to read a book.

    // Action => recommend Book • I want to eat sandwich. // Action => order sandwich • I want to play football. // Action => find suitable time
  14. What is meant by • I want to read that

    book. • I read that book. • Did you read that book ? • Can you get me a book to read ? • I don’t want to read that book.
  15. Examples • wit.ai • api.ai (Dialogflow) • Facbook NLP Engine

    • Open source libraries for NLP Classifiers.
  16. Useful Links • Stanford Natural Language Processing Course: https://goo.gl/FFbyBd •

    Andrew NG, Machine Learning Course: https://goo.gl/AXkdyj • Recommended AI Books List: https://goo.gl/Sz9vyX