ML Two
Lecture 07
π€NLP 101: basic tasks with Apple Natural Language Frameworkπ
Welcome π©βπ€π§βπ€π¨βπ€
First of all, don't forget to confirm your attendence on
Seats App!
after today's lecture:
-- Natural Language Processing basic tasksπ€
--- Lemmatisation
--- Named Entity Recognition
--- Part-of-speech tagging
--- Language Identification
NLP:
Natural Language Processing
-- recall data modality?
data modality:
image, text, audio, sensor data, etc.
for example,
object detection is about image data
NLP?
-- look it up on wikipedia
-- "the application of computational techniques to the analysis and synthesis of natural language and speech.""
-- it is an interdisciplinary subfield
Example applications of NLP:
text-to-speech π£οΈ
speech-to-text π
machine translation π§
image captioning π§βπ«
text-to-image generation π§βπ¨
etc.
also NLP:
-- Lemmatization
-- Named Entity Recognition
-- Part-of-speech tagging
etc.
βββ
While engaging with languages is very natural to us,
(it is a given, we can use it without fully understanding how our language system works)
NLP can be quite complex and comprises many low-level sub tasks, including:
For today's lecture, we will go through each one of these basic tasks with a reference to
π Apple's Natural Language Framework.
- We are not going to look deep into the AI models, instead we just need to know how to use themπ
open an xcode playground, import the framework:
import NaturalLanguage
import Foundation
import CoreML
Language identification
--1. what is it about? π₯·
--- try answer by filling out blanks in: Given an input of __, the solution model should produce an output of __
--2. what are the possible use cases? π§βπ³
--3. paste and run the example codes! πΉοΈ
Named Entity Recognition
--1. what is it about? π₯·
--- try answer by filling out blanks in: Given an input of __, the solution model should produce an output of __
--2. what are the possible use cases? π§βπ³
--3. paste and run the example codes! πΉοΈ
Jon Rafman made a MV for Kanye and
this guy
is re-making it using AI tools
Part-of-speech tagging
--1. what is it about? π₯·
--- try answer by filling out blanks in: Given an input of __, the solution model should produce an output of __
--2. what are the possible use cases? π§βπ³
--3. paste and run the example codes! πΉοΈ
Tokenization
--1. what is it about? π₯·
--- try answer by filling out blanks in: Given an input of __, the solution model should produce an output of __
--2. what are the possible use cases? π§βπ³
--3. paste and run the example codes! πΉοΈ
π
Today we talked about:
-- Lemmatisation
-- Named Entity Recognition
-- Part-of-speech tagging
-- Language Identification
in what these tasks are about and how to use Apple Natural Language Framework for these tasks!
We'll see you next week same time same place! π«‘