generate ไม่ใช่เฉพาะ text แต่ยังรวมถึง images , audio ,video , หรือแม้แต่ computer code
github
สามารถใช้ Google’s Colaboratory Notebook เปิด github ได้

1. Introduction to NLP Libraries

1. Introduction to NLP Libraries

Overview of natural Langauge
computer ability of compute understand , analyze , manipulate , process human lanauge
ใช้ Python เพราะมีspecial libraries สำหรับ NLP tasks
จริงๆ ทั้ง computer and python ไม่เข้าใจ word
แต่มัน understand number , ดังนั้น machine learning ต้องทำให้ text อยู่ในรูปแบบ number ก่อน
words มักจะ represent เหมือน vector , using technique like word embeddings
Vectorization or word embedding คือ process of converting text data -> numerical vector eg
natural = [0.2 ,-0.1 ,0.5 , …] ~ ตัวแรกแทน Not artificial ,ต่อมาแทน environment , สุดท้าย แทน simplicity , แต่ละส่วนจะบอกถึง meaning , context , usage
ใน real world , vector มี many dimension ถึง 50-300 แต่โดยมากจะทำแค่ 3 dimensions

NLP ที่ใช้ใน real life eg spam filter ,language translation , text summarization
และใช้ในหลายๆ application eg Chatbots , Text-to-speech and speech-to-text , named entity recognition(NER) eg name people , organization , location ,
– question / answering
– online web-based large language model eg ChatGPT or Gemini
– Sentiment analysis eg text นั้น negative ,positive or neutral ใน customer feedback analysis

Evolution of Natural Language Processing
– Tranditional – eg Linguistic rules , handcraft feature , statistical models to-> process natural language
– Neural network – recurrent neural network , long short-tem memory network , convolutional neural network capture , sequential dependencies in text
– Transformder – self attention mechanisms to-> process input data in parallel มากกว่า sequentially
มี document ยาวๆ มา และใช้ vectorizer เพื่อ CountVectorizer()
output ที่ออกมา เป็น matrix และ feature names eg ‘and’, ‘document’ ,… ตยใน scikit
– และอีกตัวอย่างใน LSTM : neural networks – binary classification model สำหรับ sentiment analysis
– tokenizes input documents