Profile

Click to view full profile
Hi, I'm Veerapat Sriarunrungrueang, an expert in technology field, especially full stack web development and performance testing.This is my coding diary. I usually develop and keep code snippets or some tricks, and update to this diary when I have time. Nowadays, I've been giving counsel to many well-known firms in Thailand.
view more...
Showing posts with label NLP. Show all posts
Showing posts with label NLP. Show all posts

Sunday, March 18, 2012

Friday, September 23, 2011

Lexalytics: Text Analytics Software

     Lexalytics, Inc. builds text analytics software, and also libraries as well to deal with the natural text from human. It provides the software that can be used to take competitive advantages in businesses such as social media monitoring, marketing intelligence, voice of customers, and enterprise searching. The most interesting thing for me is Tripadvisor is a one of Lexalytics partner, which this website is the world largest travel site, enabling travelers plan and have a perfect trip. Tripadvisor offers trusted advice from real travelers to make beginner travelers plan a suitable solution for themselves.
     In my B.Sc. project, I built a software that have tried to extract sentiment of travelers in positive and negative based on various traveling aspects such as appearance, atmosphere, cleanliness, value, and etc. The hardest things for me are entity mapping, set of vocabularies with feeling for each concerned aspect, error of data, and topic separation. Many things of Lexalytics made me feel curious , and I have tried to study about NLP more at http://www.lexalytics.com/sentiment-extraction-measuring-emotional-tone-text.
     Later, I will summarize important information and write down on this blog.

Tuesday, December 28, 2010

How to Lemmatization with Wordnet in NLTK

We can convert a word back to its basic form by using wordnet lemmatizer. Moreover, we can specific part of speech to check its form: n->noun, v->verb, a->adjective, r->adverb (if not specify, it will be noun).
from nltk.stem.wordnet import WordNetLemmatizer
l = WordNetLemmatizer()
l.lemmatize('cars')            # car
l.lemmatize('women')           # woman
l.lemmatize('fantasized','v')  # fantasize
So, a word will be checked with wordnet to see its basic form according to part of speech.

Thursday, December 23, 2010

Wordnet Interface in Python with NLTK

Currently, my project involves with natural language processing and also wordnet for seeing the relationship between word meanings. In python, wordnet can be used with NLTK. NLTK has a wordnet of Princeton University.The main features that are supported in NLTK as following: synset, lemma, hypernym, hyponym, antonym and path similarity.

Basic use examples:
import nltk
from nltk import wordnet as wn
#looking word's synsets
wn.synsets('beautiful')
#synsets
car = wn.synset('car.n.01')
car.lemmas
car.hypernyms()
car.hyponyms()
#antonyms
car.lemmas[0].antonyms()

See more details at:
http://nltk.googlecode.com/svn/trunk/doc/howto/wordnet.html
http://wordnet.princeton.edu/