Thursday, August 14, 2008

First Experience with Named Entity Recognition


I must preface this email by saying that I am fairly new to Text Mining or NLP. I just tried named entity recognition as written in the GATE tool on a Wikipedia entry on the University of Louisville. All parameters are set to defaults for ANNIE. The results can be seen by taking a look at the included image.

The results to me suggest that this is a very difficult task. A majority of abbreviations such as NIH, NCAA and U of L could not be discovered what type of entity these were. It is also interesting that the University of Louisville is labeled differently in different parts of the text. In the table description (stripped of its structure in this context) labels just "Louisville" as a location, which is true but not the best labeling. While the second occurrence in the first paragraph labels the "University of Louisville" as an organization which is the correct label.

It is interesting to me that the NIH, when the full name was spelled out that the word "National" was left out and the abbreviation "NIH" was not labeled as an organization but is an unknown entity.

Lastly the labeling of persons did not do well. The president of the university is labeled correctly (Dr. James R. Ramsey), but "Faculty", "Urban", and "General Assembly" are also labeled as people. The precision of the persons label is 1/5, not so good. Though I guess the recall is a perfect 1/1.

GATE-4.0 Vista Bug

If you are new to GATE and are using Windows Vista, you may come across the following exception in the message tab:

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at sun.swing.table.DefaultTableCellHeaderRenderer.getColumnSortOrder(DefaultTableCellHeaderRenderer.java:104)
at com.sun.java.swing.plaf.windows.WindowsTableHeaderUI$XPDefaultRenderer.getTableCellRendererComponent(WindowsTableHeaderUI.java:108)
at gate.swing.XJTable.calculatePreferredSize(XJTable.java:105)
at gate.swing.XJTable.getPreferredSize(XJTable.java:130)
at gate.swing.XJTable.getPreferredScrollableViewportSize(XJTable.java:86)
at gate.gui.FeaturesSchemaEditor.populate(FeaturesSchemaEditor.java:169)
...

It turns out that the Java libraries for GUI's are a little different in Vista from Windows XP. To fix the problem simply go to Options > Configuration and change the "Look and feel" from "Windows" (the default) to say "Metal" and you have a work around. You should no longer see that exception again.

Friday, August 1, 2008

Mining Topic-Specific Concepts and Definitions on the Web

I just finished reading the paper of the same name as this post by Bing Liu, Chee Wee Chin and Hwee Tou Ng. There were two thoughts that I had as reading this paper. First, though we all know that search engines are a one-size fits all application, I have not really thought about it. Is it not interesting that a 8-year old and a Biologist who has been doing research for 20 years can both type in the term "ant" in Google and receive the same results (Apache's Ant project for building Java applications).

Sure, without signing in to Google, what could they know about the individual making the search? What is really interesting is we are giving Google or other search engines practically nothing to work with, and expecting them to read our minds and for most of my searches they do pretty well. (Try searching for "mormons bosnia" and see what you get. By the way LDS is an abbreviation often used to refer to Mormons.)

Second (as in the second idea I had from this paper), it would be really nice if we could summarize a 100 web pages of results into a single table. What do you include and what do you not include are obvious questions. But imagine if our search for "data mining" as discussed in this paper returned a summary of definitions held on data mining. For example, "_" (53 pages), "_" (6 pages) and "_" (2 pages). Where each "_" would be a definition and the parantheses would be links to results pages containing all of those pages. Now it would be nice if there was some intelligent analysis of the definitions so that each of those 53 pages for the first definition, though each page did not write the same definition, for our purposes held the same meaning. Certainly each individual has different purposes, so that definition equality is up for debate in a lot of cases depending on who you talk to. This idea could definitely use a lot of refinement.

Thursday, June 19, 2008

OpenEphyra

Open-domain question answering systems in general seek to answer questions in natural language with answers in their document collection. Rather than returning a link to a document similar to a question, the answer is returned with a link to where the answer was found.

Recently I read that it would be rare to find a software package including all the pieces to a question answering system. There are usually many pieces to such systems gathered from text mining and natural language processing, as well as several tuned parameters. However, the good news for the question answering community is that there is now an open source system available: OpenEphyra. This system has been put together by a Ph.D. student at CMU, Nico Schlaefer. The system appears to be easily extensible. It has built functionality to test the system on TREC QA track competitions. Great work Nico Schlaefer and any else who have helped.

Wednesday, June 18, 2008

Contextual Computing

I have no subscribed in Google Reader to several blogs out there. One of which is Joel Dehlin's blog. He is the CIO for the LDS church. His latest post is on the top 10 most disruptive technologies for 2008-2012, where he sites an article from ehomeupgrade.com. It is an intersting little list, though I am not sure what is meant by "fabric computing" and "semantics". One of the topics that stood out was "Contextual Computing".

As I understand it, contextual computing refers to the awareness of an application of the environment of a user and of the users usual actions. The most usual applications of which would be the use of cell phones equipped with GPS devices to alert the user of nearby resteraunts or other nearby services. I would guess that Google's use of a users IP location to filter ads could also be considered contextual computing. I would suggest that a good contextual computing application would perhaps go unnoticed by a user, but would increase the expectations of a computer to understand their intentions. For example, if Word noticed that nearly every time that it automatically uppercased a word after a period, the user undid the action, then Word would stop automatically uppercasing words after periods. Once the user caught on that Word had caught on to this pattern, the user would expect Word to catch onto all other useful patterns.

Of course, there is the possibility that certain patterns noticed by Word or other applications would not be appreciated. Take for example a user who opens up Yahoo!'s home page for the most part every 30 min. to check for email. Now if the browser or operating system started to predict this behavior and automatically opened up Yahoo!, that would make me uncomfortable.

Lastly, some applications only exist because of contextual computing. All of the new features associated with GPS devices in cars are of no use without location awareness.

It will be interesting to see what creative uses await for contextual computing.

Friday, May 9, 2008

What is a "Tree Pattern"?

Perhaps this may be obvious to you, but it was not to me. I was recently reading "Mining tree patterns with Almost Smallest Supertrees" from Proceedings of the 2008 SIAM International Conference on Data Mining. My first question was what is a "tree pattern"? On first skim, I could not find an example or a simple definition of what a tree pattern was. This paper is referring to frequent trees in tree structured data. For example one of the data sets uses a web log containing user session data. A session could be described as a tree where each page visited is a node and the edge between pages is a directed edge originating at the earlier page and proceeding to the later page in time. In this case a tree pattern could be that people coming from the "edu" domain often go to page A followed by page B. However it is still not clear to me if part of a session could be a pattern or if a frequent tree only refers to entire trees. Help me out if you know the answer.

Thursday, March 20, 2008

Recommendation Systems

I just returned from my Web Mining class. A student made the point there that never in his 10 years of using Amazon.com has their recommendation system ever suggested something that even made sense to him, let alone led to a purchase. He has also rated some 4,000 movies on NetFlix in hopes that he could find some new movie that he would enjoy. He has a very low opinion now of recommendation systems.

I would agree with him, though my opinion is not so strong. Never has a recommendation system worked for me. Either the recommendation is obvious, I bought a CD by artist A so I am recommended CD's by artist A that I am already aware of or the recommendation is for something unrelated and unuseful. The only time that the recommendation system seems to work for me is when I am new to a specific area and am looking for the most popular books in that area.

Recommendation systems have a difficult task. Computer systems cannot understand the human mind. Everyone makes a purchase or likes a specific book for a reason. Those reasons are different between people making the same purchase. How can you then recommend the same thing to two different people that bought that book for different reasons? It does not make sense.

The one case that I thought of where recommendations have worked for me is Pandora.com. That music recommendation system has led me to learn of new artists and songs that I like. It made many wrong song suggestions, but I like enough music that eventually something new was played that I liked. Not through a wonderful system, but more of trial and error in a genre.