Using MATLAB for Sentiment Analysis and Text …
Using MATLAB for Sentiment Analysis and Text Analytics
By Liliana Medina MathWorks UK ? Software Engineer MATLAB Text Analytics Toolbox
? 2018 The MathWorks, In1c.
Outline
Sentiment Analysis Strings in MATLAB Introduction to Text Analytics Toolbox Using the toolbox for a sentiment analysis task
? Overview ? Step-by-step ? Insights
Additional capabilities and Resources
2
Sentiment Analysis
? Identify sentiment expressed in documents and social media
? Microblogging platforms, news articles, company reports, e-mails
Applications ? Volatility and Risk analytics ? Inform trading strategies ? Correlate with stock movements ? Economics research ? Litigation
3
Strings
The better way to work with text
Manipulate, compare, and store text data efficiently
>> "image" + (1:3) + ".png" 1?3 string array "image1.png" "image2.png" "image3.png"
Simplified text manipulation functions
? Example: Check if a string is contained within another string
Previously:
if ~isempty(strfind(textdata,"Dog"))
Now:
if contains(textdata,"Dog")
Performance improvement
? Up to 50x faster using contains with string than strfind with cellstr ? Up to 2x memory savings using string over cellstr
4
Text Analytics Toolbox
Extract Value from Text Data
Statistics & Machine Learning Toolbox
Access and Explore Data
Preprocess Data
Cleanup Text
Convert to Numeric
Model and Derive Insights
RT @wsv Dry, warm and sunny for most today.#weatherRepor t
cat dog run two doc1 1 0 1 0 doc2 1 1 0 1
? Word Docs ? PDF's ? Text Files ? HTML ? Tables/Spreadsheets
Dry warm sunny today
? Stop Words ? Stemming ? Tokenization ? Find special tokens
? Bag of Words ? Bag of N-grams ? TF-IDF ? Word Embeddings
? Latent Dirichlet Allocation (LDA) ? Latent Semantic Analysis (LSA) ? Word clouds ? Text scatter plots
Neural Network Toolbox
5
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- chapter 4 hw solution mechanical engineering
- gui with matlab columbia university
- matlab gui tutorial for beginners blinkdagger
- lab 9 introduction to matlab graphical user interface gui
- input output in matlab
- using matlab for sentiment analysis and text
- matlab commands and functions omicron chapter
- introduction to matlab for engineering
- 6 057 introduction to matlab homework 1
- the basics of matlab wayne state university