Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
text_mining_slides_20180512
Search
Leo Lu
May 12, 2018
Technology
94
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
text_mining_slides_20180512
Leo Lu
May 12, 2018
More Decks by Leo Lu
See All by Leo Lu
R from Data Analysis to Production
leoluyi
1
150
2018-07-28_viz_talk
leoluyi
0
91
Other Decks in Technology
See All in Technology
穢れた技術選定について
watany
19
6k
AI時代の開発生産性を捉え直す — 経営と現場をつなぐ「開発組織のオブザーバビリティ」— / AI Dev Ex Conference 2026
tkyowa
1
1.2k
Playwright × AI Agent でE2Eテストはどう変わるか AI駆動テストの可能性と実用検証の結果
taiga7543
2
760
[Droidcon Orlando '26] The Android Lens: Applying Mobile Forensics to AI Performance
amanda_hinchman
1
100
生成 AI 時代にいま一度「問い合わせ」について考えてみる
kazzpapa3
1
110
壊して学ぶAWS CDK: そのcdk deployで消えるもの、残るもの
k_adachi_01
1
460
LLM/Agent評価:トップ営業の発言を「正解」にする 〜暗黙的正解による評価を営業資産に変える〜
takkuhiro
1
240
Amplify Gen2でbackend.tsにCDKを定義する/しない事によるCDKの挙動の違いとユースケース
smt7174
1
470
Aurora MySQL 8.4リリース! Rubyistが備えること / what-rubyist-should-prepare-for-aurora-mysql-8-4
fkmy
0
120
2年前に削除したPHPクラスが、 ある日突然決済をエラーにした
ykagano
1
710
DatabricksにおけるMCPソリューション
taka_aki
1
330
非定型なドキュメントを効率よくリファクタする 〜えぇ!?仕様書27本の移行が1日で終わったって!?〜
subroh0508
2
600
Featured
See All Featured
Building AI with AI
inesmontani
PRO
1
1.1k
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
2.1k
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
118
120k
Why Our Code Smells
bkeepers
PRO
340
58k
The Language of Interfaces
destraynor
162
27k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.7k
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
420
The Limits of Empathy - UXLibs8
cassininazir
1
520
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
49
10k
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
270
Believing is Seeing
oripsolob
1
170
How to train your dragon (web standard)
notwaldorf
97
6.7k
Transcript
Text Mining and Data Viz 2018-05-12 leoluyi@iii Slides http://pcse.pw/6WHWJ ©
leoluyi, 2018 1
橕ෝ౯ 4 㸎瓽 Leo Lu 4 ݣय़ૡᓕ 4 ፓ獮ෝᰂᣟ禂๐率 4
Build data products 4 ETL 4 Models 4 Text mining 4 Viz 4 ... © leoluyi, 2018 2
Text Minning 窕纷 膏 ૡٍ㮉 © leoluyi, 2018 3
膑碻դጱૡٍ vs. 碝Ӯդጱૡٍ © leoluyi, 2018 4
犥獮౯㮉᮷አक़㾴Ո䌃ጱ䩚ᥜ tm + tmcn Rwordseg © leoluyi, 2018 5
֕ฎ蝡犚ॺկஃஃࣁӾ 䨝磪๚Ꭳጱ襊 © leoluyi, 2018 6
犡ॠ౯㮉ᥝአӞ犚碝ጱૡٍ © leoluyi, 2018 7
窕纷 Get data ➜ Tokenize ➜ Embedding ➜ Viz ➜
Model © leoluyi, 2018 8
Get data Get data ➜ Tokenize ➜ Embedding ➜ Viz
➜ Model 9
PTT ฎ疌疌ጱঅ๏ Get data ➜ Tokenize ➜ Embedding ➜ Viz
➜ Model 10
ྯॠ᮷磪盄ग़盄ग़ጱ䔂承碘 © leoluyi, 2018 11
ᛔ૩ጱ粖恝ᛔ૩䌃 devtools::install_packages( "leoluyi/PTTr") © leoluyi, 2018 12
Cleaning and preprocessing text ኸӥ虻懱牧݄ധ褾懱 © leoluyi, 2018 13
Tokenize Transform whole text into parts Get data ➜ Tokenize
➜ Embedding ➜ Viz ➜ Model 14
For English 4 normalization 4 stemming (扃䓄玲) 4 lemmatization (扃ࣳ螭ܻ)
4 POS tagging 4 ... Get data ➜ Tokenize ➜ Embedding ➜ Viz ➜ Model 15
Ӿ犲Ԓ穉斃墋㻌 4 䥁扃 4 犋䥁扃 4 POS tagging 4 ...
Get data ➜ Tokenize ➜ Embedding ➜ Viz ➜ Model 16
Semantic Parsing vs. Bag-of-Words © leoluyi, 2018 17
R tools 4 stringr 4 jiebaR Get data ➜ Tokenize
➜ Embedding ➜ Viz ➜ Model 18
Embedding (Encode, Feature Extraction) Get data ➜ Tokenize ➜ Embedding
➜ Viz ➜ Model 19
Embedding In a nutshell, Word Embedding turns text into numbers.
4 Embedding Layer1 4 Word2Vec 4 GloVe 4 doc2vec 4 sense2vec 1 https://machinelearningmastery.com/what-are-word-embeddings/ Get data ➜ Tokenize ➜ Embedding ➜ Viz ➜ Model 20
© leoluyi, 2018 21
Demo Information Retrieval Get data ➜ Tokenize ➜ Embedding ➜
Viz ➜ Model 22
Visualize 4 Dimension Reduction 4 t-sne 4 PCA 4 Clustering
4 Interactive or static plots Get data ➜ Tokenize ➜ Embedding ➜ Viz ➜ Model 23
Visualize 4 tsne::tsne() 4 prcomp() Get data ➜ Tokenize ➜
Embedding ➜ Viz ➜ Model 24
Model Get data ➜ Tokenize ➜ Embedding ➜ Viz ➜
Model 25
Tasks 4 Classification 4 獤觊 4 Clustering 4 ತ疨ፘ犲 4
Generative models 4 ᛔ㵕ኞ౮ Get data ➜ Tokenize ➜ Embedding ➜ Viz ➜ Model 26
አک磧盅᮷䨝మᥝ䌃ᛔ૩ጱ toolkit 4 Sparse Matrix manipulation 4 Informaiton retrieval tools
4 ... © leoluyi, 2018 27
Summary 1. Problem definition & specific goal: Get Curious About
Text 2. Finding Your Data 3. Preprocessing Your Data 4 Removing stopwords, Stemming, Segmentation, ... 4. Feature Extraction 4 Document-Term Matrix: tm, text2vec 4 Named Entity Recognition, POS tagging 4 Word embeddings: word2vec, GloVe 5. More Text Mining Skills 4 sentiment analysis 4 topicmodels, LDAViz: LDA 6. More Than Words - Visualizing Your Results © leoluyi, 2018 28
碍硁ᑀ䋊 㸎瓽 leoluyi@github https://leoluyi.github.io © leoluyi, 2018 29