/* ---- Google Analytics Code Below */
Showing posts with label text analytics. Show all posts
Showing posts with label text analytics. Show all posts

Saturday, October 17, 2020

Text Mining with R: Free Book

 One of those sponsored books, to get your email address, via KDNuggets.   What we called Text Analytics.    Looks to be useful intro.

Text Mining with R: Free Book    By Matthew Mayo, KDnuggets.

.... R is designed specifically for statistical computing, in juxtaposition to general purpose languages, the trade-off being that the relative lack of generality means better optimization for specialized scenarios. R's optimization for statistical computing is a big reason why it enjoys such high levels of adoption in data science and analytics.

Text analytics — like all applications and sub-genres of natural language processing — is continually reaching increasing heights of importance for data science, data scientists, and a variety of industries. As R (and its opinionated collection of packages designed for data science, the tidyverse) is an established environment for statistical computing utilized by data scientists, fully capable of performing text analytics, today we will look at Text Mining for R: A Tidy Approach.  ... "

Saturday, March 31, 2018

Practical Python Text Preprocessing

Preprocessing text often the most important and time consuming part.   Here a step by step introduction in KDNuggets.  Practical.   With links to useful tools.

Text Data Preprocessing: A Walkthrough in Python

By Matthew Mayo, KDnuggets.

In a pair of previous posts, we first discussed a framework for approaching textual data science tasks, and followed that up with a discussion on a general approach to preprocessing text data. This post will serve as a practical walkthrough of a text data preprocessing task using some common Python tools.  .... "

Tuesday, March 27, 2018

Data Mining Text Reviews

An example of analyzin reviews using analytical methods.

Tidy Text Mining Beer Reviews

On R, tidytext, clustering, classification, correlation, tfidf, knn, dataviz, web scraping

Craft beer is a huge market. Beer reviews from fellow beer drinkers help customers navigate it.

From 2013 to 2016, the craft beer industry nearly doubled in value from $14.3 to $23.5 billion. The number of craft breweries jumped from 2,768 to 5,005, and production ramped up from 15 to 25 million barrels a year.

BeerAdvocate was founded in 1996 as a forum to review, rate and share ideas about beer. Today, the site houses millions of reviews for hundreds of thousands of beers, both domestic and international.

Users can rate beers and optionally provide text explaining their assessment. BeerAdvocate takes a thorough approach to beer evaluation, asking users to rate each on several features: look, smell, taste, feel, and overall. The platform also provides measures to indicate the spread or consensus of reviews, both in the rDev (a single rating's deviation from the overall mean rating) and the pDev (deviation within a beer's ratings).   ... "

Monday, January 29, 2018

Solving NLP Problems

Nicely done, mostly non-technical piece on natural language processing (NLP).  Why it is important and how to plan and execute NLP problems.   Text is our language, still an important channel, so we need to know how to interpret it to get value.  Link to much more ...

How to solve 90% of NLP problems: a step-by-step guide
Using Machine Learning to understand and leverage text.
By Emmanuel Ameisen, Program Director at Insight AI @EmmanuelAmeisen

Text data is everywhere

Whether you are an established company or working to launch a new service, you can always leverage text data to validate, improve, and expand the functionalities of your product. The science of extracting meaning and learning from text data is an active topic of research called Natural Language Processing (NLP).

NLP produces new and exciting results on a daily basis, and is a very large field. However, having worked with hundreds of companies, the Insight team has seen a few key practical applications come up much more frequently than any other:

Identifying different cohorts of users/customers (e.g. predicting churn, lifetime value, product preferences)

Accurately detecting and extracting different categories of feedback (positive and negative reviews/opinions, mentions of particular attributes such as clothing size/fit…)
Classifying text according to intent (e.g. request for basic help, urgent problem)    ... "

Monday, August 14, 2017

Text Summarization

A good AI challenge that has useful applications.

An Algorithm Summarizes Lengthy Text Surprisingly Well
Training software to accurately sum up information in documents could have great impact in many fields, such as medicine, law, and scientific research.

by Will Knight  May 12, 2017  in Technology Review.

Who has time to read every article they see shared on Twitter or Facebook, or every document that’s relevant to their job? As information overload grows ever worse, computers may become our only hope for handling a growing deluge of documents. And it may become routine to rely on a machine to analyze and paraphrase articles, research papers, and other text for you.

An algorithm developed by researchers at Salesforce shows how computers may eventually take on the job of summarizing documents. It uses several machine-learning tricks to produce surprisingly coherent and accurate snippets of text from longer pieces. And while it isn’t yet as good as a person, it hints at how condensing text could eventually become automated .... " 

Saturday, May 20, 2017

Text Mining Memes Online

Interesting progress in text mining that includes repeated memes and context.   Technical.

A system for extracting and comparing memes in online forums

Héctor Beck-Fernandeza, , David F. Nettletonb, , , Lorena Recaldeb, , Diego Saez-Trumperb, , Alexis Barahona-Peñarandaa, 

Highlights

Automatic extraction of top memes (key concepts, relations) from unstructured text.
Sophisticated meme construction and matching algorithm.
System with default/customizable control parameter set.
No preprocessing of text or manual intervention between steps is necessary.
Results show a better information retrieval F-score than other methods.

Abstract
From their origins in the sociological field, memes have recently become of interest in the context of `viral' transmission of basic information units (memes) in online social networks. However, much work still needs to be done in terms of metrics and practical data processing issues. In this paper we define a theoretical basis and processing system for extracting and matching memes from free format text. The system facilitates the work of a text analyst in extracting this type of data structures from online text corpuses and n performing empirical experiments in a controlled manner. The general aspects related to the solution are the automatic processing of unstructured text without need for preprocessing (such as labelling and tagging), identification of co-occurences of concepts and corresponding relations, construction of semantic networks and selecting the top memes.  .... "  

Sunday, May 14, 2017

Machine Learning for Summarizing Text

Accurately and efficiently summarizing text has been a classic goal of AI systems, of interest that Salesforce, known for doing AI experimenting in this space, is working on it:   In TheVerge:  (with demo):

Salesforce created an algorithm that automatically summarizes text using machine learning  by Andrew Liptak   @AndrewLiptak   .... " 

Thursday, March 30, 2017

Streamlined Text Mining

A  time ago we used relatively simplistic methods of context analysis to understand the meaning of gathered text.  Now with focused methods and increasing amounts of text data,  new results are now possible.  In Datanami: 

Biomedical Text Mining Tool Gets the Lead Out   by George Leopold

Approximately 100 lines of Python code serve as the basis of a new predictive text-mining tool designed to accelerate the scanning online biomedical research papers for clues on everything from repurposing existing drugs to advancing stem cell treatment.

Coders from the Morgridge Institute for Research working in partnership with the University of Wisconsin at Madison reported on their “KinderMiner” algorithm during a bioinformatics conference in San Francisco this week. The researchers said the 100-line algorithm was “within hours” able to scan more than 30 million online papers to provide ranked and relevant associations based on key words and phrases.

“Most often, researchers are running manual Google searches and combing through millions of hits to find, for example, certain genes that are important to a biological process or disease,” explained Ron Stewart, associate director of bioinformatics at the Morgridge Institute. “It’s often based on hunches and intuition. We’re trying to automate and formalize that process.”

Alternative techniques require much data wrangling, added Finn Kuusisto, a postdoctoral researcher at the Morgridge Institute. “We write about 100 lines of Python code, and our users can be given answers that may significantly speed up their scientific process.”

Monday, October 31, 2016

Context and Text Mining

Context always matters.  Text mining or elsewhere.  Good example here.

Context Matters When Text Mining  Posted by Dalila Benachenhou  

Many times the most followed approach can result in failure.  The reason has more to do with thinking that one approach works in all cases.  This is specially true in text mining.  For instance, a common approach in clustering documents is to create tf-idf matrix for all documents, use SVD or other dimension reduction algorithm and then use a clustering.  In most cases, this will work; However, as I will present here,  there are instances where this process will not provide the intended result.  It will not work because the subject characteristic, or the context where the approach is used. Recipe reviews is one of these instances.

To show the importance of context driven text mining, I will use recipe reviews as example, more precisely Enchiladareviews.  You can find the cleaned dataset (tokenized by sentence structure and words, stop-words removed, and lower cased words) in github, and full description in my  previous blog. I sampled 239 reviews, or 1616 sentences.   .... ? 

Wednesday, September 14, 2016

IBM and Chevy Generating 'Positivity'

Anther example of the text analysis of social media streams  ...  although the resulting measure seems quite general.   In AdAge:

Chevy and IBM Will Rate Your Social Media 'Positivity'     By E.J. Schultz

" ... The global campaign -- which is rolling out today -- allows participants to visit a mobile or desktop site to obtain a positivity score based on their social media posts.

Users are asked to enter either their Twitter or Facebook account names at the site. Within seconds the program returns a positivity score. The output also identifies a user's least positive and most positive posts as well as their five most used positive words. Also provided is a detailed social personality summary. At the end, Chevy recommends an experience based on the output, such as "master a new language."   ... " 

Tuesday, September 06, 2016

Text Summarization with Tensorflow

Quite a considerable effort.  Depends on the quality and consistency of the results.  Also the domain of language being summarized.  Similarities to language translation semantics.  Note too the large scale text datasets being summarized.  See also, The Google Brain Team. 

Text summarization with TensorFlow
Wednesday, August 24, 2016
Posted by Peter Liu, Software Engineer, Google Brain Team

Every day, people rely on a wide variety of sources to stay informed -- from news stories to social media posts to search results. Being able to develop Machine Learning models that can automatically deliver accurate summaries of longer text can be useful for digesting such large amounts of information in a compressed form, and is a long-term goal of the Google Brain team. 

Summarization can also serve as an interesting reading comprehension test for machines. To summarize well, machine learning models need to be able to comprehend documents and distill the important information, tasks which are highly challenging for computers, especially as the length of a document increases.

In an effort to push this research forward, we’re open-sourcing TensorFlow model code for the task of generating news headlines on Annotated English Gigaword, a dataset often used in summarization research. We also specify the hyper-parameters in the documentation that achieve better than published state-of-the-art on the most commonly used metric as of the time of writing. Below we also provide samples generated by the model. .... "

Thursday, August 25, 2016

Emotion Analysis API

More companies are looking at text analysis ....

AlchemyLanguage Emotion Analysis API is Generally Available, and It’s Getting Better

Many in the field of Cognitive AI research and development speak of the importance of context. Context could be visualized similar to that of an onion, with multiple levels of nested, related and non-related context. But perhaps one of the most important layers is Emotional context, as it has the power to transform dynamic decision making internal to the intelligence.”

—Brennon Williams, Chief Executive Officer & Founder of Iridium Systems and Robotics Corporation

On July 1st, 2016, the Emotion Analysis capability in AlchemyLanguage became Generally Available for production use. Now, with our latest updates, you can use Sentiment & Emotion Analysis to understand social data at a deeper level than ever before.

AlchemyLanguage users take their Sentiment Analysis one step deeper to detect five distinct emotions in text – joy, fear, sadness, anger, and disgust. Users employ our sentiment and emotion capabilities to discover emotional trends in social media, prioritize inbound social data, and more. ... " 

Language Modeling a Billion Words

This is a technical, but interesting, tutorial on how to use noise-contrastive estimation (NCE) to train a multi-GPU recurrent neural network language model on the Google billion words data set.

Monday, August 08, 2016

New ACM Text Mining Book


Product Details
Newly received:

We are pleased to present the newest ACM Books title: Text Data Management and Analysis: A Practical Introduction to Information Retrieval and Text Mining, by ChengXiang Zhai and Sean Massung. Text Data Management and Analysis covers the major concepts and techniques in information retrieval and text data mining at scale, while focusing on practical real-world applications. The book is for use by both undergraduate and graduate-level students, as well as by library and information scientists, and practitioners involved in managing and analyzing text data.   ... " 

More on recently published ACM books.  

Friday, August 05, 2016

Looking for Sarcasm

Have been looking at the general problem of how to detect demographic and personality indicators via twitter streams.  Here is an example described of detecting sarcasm . 

" ... Researchers at the University of Lisbon have developed a machine-learning system that can identify sarcasm on Twitter by examining a user's past tweets. The system uses the past tweets to develop a picture of a person that is detailed enough to guess when they are being sarcastic. The researchers say the system predicts sarcasm with an accuracy of 87 percent, which is slightly better than other existing methods. However, by learning to detect sarcasm without human input, the system should be easy to use. In addition, the new approach should work for any language and any online platform where posting history is available. "The key innovation is realizing you can build a model of the user merely based on what they have said in the past," says University of Lisbon researcher Silvio Amir. Monash University researcher Mark Carmen notes it should be straightforward to integrate the new approach with other types of social media analysis, such as tracking users' emotions or stock market trends. Analyzing sarcasm also could be a great help to marketers and customer service teams, as well as virtual assistants such as Apple's Siri. ...  "

See previous coverage of sarcasm below.

Wednesday, August 03, 2016

Brain and Plans Behind Google's AI

Seems somewhat limited comparing this to general cognitive AI.   Also note that the proposal needs some semantic web of knowledge relating to the context of the example.    In CACM, an extract from Forbes: 

" ... Jeff Dean, senior fellow of Google's Systems and Infrastructure Group, discusses the company's artificial intelligence (AI) agenda, with its current focus on machine-learning systems.

Dean cites much progress toward true artificial general intelligence in the last five or six years as people applied some of the more refined machine-learning models.

He says a key AI goal Google plans to pursue in the coming years is taking in hundreds or thousands of documents and then having a conversation about the documents' contents. "Perhaps the system will summarize the documents, or ask or answer questions about the contents of the documents," Dean says. "I think that is the level of understanding we will need to truly demonstrate high levels of language understanding."  ....  '

Thursday, December 31, 2015

Topic Modeling in R

Topic Modeling.  A kind of textual analysis we did long before R, using cluster based 'Content Analysis'.  An  examination and R code for how this can be done in the modern era. An example of unstructured text analytics.     Their definition:  " .... A statistical approach for discovering “abstracts/topics” from a collection of text documents based on statistics of each word. In simple terms, the process of looking into a large collection of documents, identifying clusters of words and grouping them together based on similarity and identifying patterns in the clusters appearing in multitude. .. " 

Wednesday, December 09, 2015

Dealing with Unstructured Data

A look at the value of unstructured data.  Worth a read.  Text is structured because cognitive beings created it.  But has structure that is driven by a number of influencing factors, that should have useful value.  Good read.  Good example.  Reminds me of our own experience in Content Analytics.

In CustomerThink: 
" ... What I want to focus on here is the nature of dealing with unstructured data. That’s where text analytics comes in. Text automation and analysis provides a way of harnessing unstructured information and incorporating it into insights and planning. I’ve been working with text for the last 12 years and have watched the field change a tremendous amount. In the earliest commercial offerings, text software was very time-consuming. It was heavily geared toward predictive modeling and typically used methods based on statistical and machine learning. Capabilities were far less robust for the most common analytic application today – survey verbatim classification through building taxonomies. (I remember working with one insurer whose team spent over 3,000 man hours building out text analytics just for categorizing claims notes). ... " 

Sunday, October 18, 2015

Google NGram Viewer

While considering some unstructured text analysis the Google Ngram viewer came to mind.  The system " .... charts frequencies of any word or short sentence using yearly count of n-grams found in the sources printed between 1800 and 2012 ,,, ".  Based on Google Books or other collections of texts.   In multiple languages.  Addictive for the linguistically inquisitive. We had proposed something for a textual 'content analysis' project where we could have used the idea.   In the Wikipedia.  Can anyone point me me its use for text analytics?  This made me recall it had been posted on quite a few times here before, see the tag below.  See also the book: Uncharted: Big Data as a Lens on Human Culture by Erez Aiden and Jean-Baptiste Michel. 

Monday, September 14, 2015

Analyzing Spoken Word Content

How Veritone's Cognitive Platform Analyzes Spoken-Word Content

The next frontier: How do you understand and act upon information that is not written? Veritone has an app for that.

What if somebody did for voice content what Google did for Web search, Salesforce did for CRM and SAS does with analytics—all at the same time?

Veritone is a startup with a rather daunting mission: It wants to record, store and analyze all the spoken words in all media. That's right. This means everything spoken in television, radio, online video, podcasts—you name it.

How can this be possible? Actually, while staying way under the radar until now, the young company has been developing this functionality for two years and already has customers using it.
Veritone Media, the advertising arm of the company, is doing the first commercial business for Veritone. Veritone Media is all about producing exact quantifications on the very inexact science of how media affects viewers/listeners/buyers and convinces them to do or buy something. .... "