Syntax Isn't Everything: NLP For Rubyists
summary
Demonstrates using the Google Cloud Natural Language API from Ruby (the google-cloud-language gem) to replace a 30-line emoji hack with three lines that return a score between -1 and 1 for sentiment; shows syntax tokens with head indices to extract subject/root/object and build ASCII sentence diagrams and Graphviz dependency graphs (via a Ruby graph gem) that correctly handle prepositional phrases; notes the first 5,000 API calls per month are free and that these demos are good for prototyping but not turnkey production systems.
AI-written summary · about
chapters (10)
- 0:00Introduction and background
- 2:11Why NLP matters today
- 6:28Challenges of human language
- 10:31History of NLP
- 13:03Sentiment analysis demo
- 16:56Sentence diagramming basics
- 20:09Syntax analysis with API
- 23:01Graph-based sentence parsing
- 24:46Practical NLP applications
- 25:48Q&A session
related talks
33mSyntax Isn't Everything: NLP for Rubyists
39mNatural Language Processing with Ruby
27mNatural Language Processing with Ruby
30mWhat's Love Got To Do With It? Ruby and Sentiment Analysis
40mRuby Writing Machines
43mGrammars, Parsers, and Interpreters, In Ruby
23mWriting Ruby, just not in English!
38mWhat's Love Got To Do With It?...
