Disambiguation

May 30th, 2010, By talk

Which is Which?

As you probably know by now, Headup specializes in understanding the meaning of text in web pages, extracting the important objects, and bringing complementary content about them from around the web.  One of the most important requirements in carrying out this process is correctly identifying the meaning of words on the page, especially those that have more than one meaning.  If you fail to do this, you can fetch a lot of high-quality, real-time and personalized information – about the wrong topic…

In technical jargon, identifying the correct meaning of words is called “Word Sense Disambiguation”.  Or in the words of Led Zeppelin (from “Stairway to Heaven”):

There’s a sign on the wall

But she wants to be sure

‘Cause you know sometimes words

Have two meanings

Some words have different meanings depending on their context.  For example, the word “Apple” can mean the fruit, the technology company, the record label or the band.  “John Mack” can refer to the Chairman of Morgan Stanley, the musician, or the psychiatrist who specialized in alien abduction experiences. The term “Enterprise” can mean a   company, a city, a ship, a starship, a space shuttle, and much more.

On the other hand, the same term can appear in the text in many different formats.  For example, if you write a blog post that mentions Barack Obama, you might refer to him as Barack Obama, President Obama, the President, the U.S. President, President of the U.S.A., Barack, Obama, Mr. Obama, etc.  All of these terms refer to the same person, so an automated system seeking to understand the text should resolve all of them to the same entity.

There are various approaches to word sense disambiguation.  Some rely on the statistics of surrounding words; others require a training stage utilizing large pieces of text in which the meaning of words has been marked manually.  Headup’s approach to disambiguation is based on its knowledge graph, the ever-expanding collection of topics, attributes, and semantic relationships between them.  Combining information derived from the knowledge graph with analysis of syntax (they way word are combined into sentences), enables Headup to reach a very high rate of precision (the percentage of terms that are correctly identified) in its disambiguation process.

The examples below show how Headup can correctly identify terms that appear in plain text, even when the term has more than one meaning, or appears only partially in the text.  All of the examples are based on actual posts in blogs that are using Headup.

First, let’s take a look at an example from the film blog “HeyUGuys”.  Here you can see how Headup correctly identifies the word “Abrams” as referring to the writer and producer J. J. Abrams.

Disambiguation Image

And here’s another example: It is typical in gossip media to refer to celebrities using their first name only, to induce a sense of familiarity.  In the post below, taken from the blog “HitDanBack”, singer Mariah Carey is referred to only as “Mariah”.  This doesn’t stop Headup from correctly identifying her, based on understanding the topic of the blog post and the context in which the name appears.

Disambiguation Image

And in the final example below, you can see how Headup interprets the term “European Championship” in an article from the blog Jewlicious.  This term can mean a championship in any sport, but based on the context of the article and related terms that are identified in the text, Headup correctly interprets “European Championship” as referring to the European Figure Skating Championship.

Disambiguation Image

If you want to see more examples of Headup in action, visit www.headup.com and explore the various blogs that are already using Headup.  You can also test drive the engine for yourself in our Entity Extraction Playground.  Enjoy!

Why we understand you

January 18th, 2010, By talk

Apples, Yoda and NLP – introducing how we understand Language

One of our missions as a company has always been providing our users with the most useful, accurate and interesting content the web has to offer.
Early on in our existence we realized that in order to do this we’d need the ability to understand the web in a way that closely mimics the way humans do. In techno-babble this is often referred to as NLP, which stands for “Natural Language Processing“, and even more specifically as NLU, which stands for “Natural Language Understanding”
As trivial as this may, it’s far from being a simple task.

Here’s why:

Language is deceptive, especially if you’re an Apple

Ambiguous Apple

Language, as we encounter it on the web and use it in our daily exchanges, is often ambiguous, and therefore deceptive, tricky and difficult to understand. So much so that often enough understanding it is challenging even for a human.
Consider for example the following sentence:

“Apple, answered Steve, is my favorite”

The possibilities for interpreting it vary widely depending on which “Apple” and which “Steve” we’re talking about.

If you happen to follow technology news, you’re likely to infer that the “Apple” in question is in fact the company, and therefore “Steve”, is in fact Steve Jobs, its founder.

If however you lack this knowledge your interpretation of the sentence must be limited to the understanding that someone named Steve is making commentary about his preferences in fruits.

Understanding language – How do we humans do it?

Humans, even very young ones, understand ambiguous usage of language almost effortlessly thanks to an innate ability to infer an ambiguous term’s context by using a wide range of cues and clues:

  • We refer to the identity of the person speaking – And therefore don’t necessarily treat every person who calls us “Bro” like family.
  • We take cues from the intonation used - It helps us differentiate between “what?” and “WHAT?!”
  • We depend on sentences’ grammatical structure - Now you know why Master Yoda is so hard to understand (and annoying – or is that just me?)
  • We refer to our knowledge of the world – As in the example above – knowing a certain “Steve” is closely related to a company called “Apple” allows us to infer that this is a possible meaning for the sentence.
  • We refer to the context in which an ambiguous term is used - In the example above it’s precisely the lack of context that leaves the ambiguity unresolved.

“Ok”, you might say, “People can understand the languages they use. So what?”.

The answer is that understanding how people understand language provides the clues necessary to teach computers to do the same.

Understanding how people do stuff is the key to teaching machines to do it too

Once we’d analyzed in depth the various cues humans utilize to understand language we examined which of them could be accomplished in real-time by using an affordably scalable system. The cues we chose to use are the bottom three from the list above: grammatical structure, knowledge of the world and context.

How do you teach a computer about the world?

In order to grant our platform the ability to understand language we set out to teach it about the world. We accomplished this by equipping it with a graph mapping out the billions of connections that exist between over 30 million nouns, topics, terms and things.

One might well ask: “What do you define as a connection?”

The answer is we defined any possible relationship between two things as a “connection”. For example:

The person “Steve” is connected to the company “Apple” because he “founded” it.

As I showed above, merely knowing that a possible connection may exist between two things goes a long way to assisting one in understanding the context in which they’re mentioned.
The more one’s aware of possible connections between the things mentioned in any given text the greater one’s confidence in selecting the correct context for each.

Returning to the example above, had the sentence been:

“Apple’s iPhone, answered Steve, is my favorite accomplishment”

We’d have little doubt as to which “Steve” and which “Apple” the sentence refers to. The mention of the iPhone grants the context we were missing before.

One of our platform’s greatest assets is that it approaches text holistically.

Rather than examine every word or sentence separately, we look at much larger segments of text in order to search for the clues that will enable us to find the correct context for all the ambiguous terms encountered.

Grammar is a powerful tool for understanding meaning

“Grammar, Yoda teaches, a powerful tool for obscuring meaning is.”

Conversely, when used correctly (i.e. not in Star Wars), it’s a very helpful tool in helping us understand context and meaning.

By incorporating a model of the English language’s grammar into our platform we were able to improve its understanding of context even further.

Content matching

We use our ability to accurately understand what a “thing”, not only to choose its appropriate meaning in the context of the text in which it’s mentioned but also, to help us retrieve matching and useful content accurately. To date we’ve already mapped hundreds of sources for:

  • News
  • Articles
  • Images
  • Videos
  • Realtime data
  • Facts
  • Events
  • Geo-data
  • Product specs

We use all these sources to retrieve the content we match for every entity. Our platform enables to extend this content repository easily, and we continue to add more data to it on a regular basis. We’re even capable of utilizing content provided by our publishers as a source (see the screenshot below for an example of how this is implemented on film review blog HeyUGuys).

What’s next?

It’s our intention to develop our content syndication abilities further in future so as to assist our bloggers and publishers in achieving distribution and getting more traffic to their sites.

As more sites and blogs install our widget we believe that the content they hold will gradually become one of the most interesting content assets we have access to, but that’s already material for another post…

The editors of the HeyUGuys blog use Headup as a "related post" widget to drive traffic internally to other posts on their blog

The editors of the HeyUGuys blog use Headup as a "related post" widget to drive traffic internally to other posts on their blog

Image Credits: Spencer E Holtaway, johannes pape

Semantic Web Shopping – a "how to" for the immediate future – Part 2

April 26th, 2009, By talk

Continued from Part 1

How to prepare for Shopping 3.0

A key element of preparing for the Semantic Web is to remember that the best Semantic Web technologies are only as good as the data they can access. If you want to enjoy the best that Semantic Web technologies have to offer be prepared to make A LOT of  information about yourself available online. A great place to start is your Facebook profile. If you want to get the most from the future of Semantic Web shopping I suggest you begin by flesing out your profile as much as you possibly can. The reason I suggest you begin with Facebook in particular is because you’ve probably already got a profile there already and, whether you like or not, Facebook is already making your information available to other services via it’s API. The Facebook API grants access to the following details about any and every Facebook member (this is a very partial list):

  • Location
  • Gender
  • Sexual preference
  • Marital status
  • Employment history
  • Likes – books, films, music, etc.
  • Fan pages the member belongs to

Despite current criticism over Facebook’s failings in regards to monetizing, the information they have is without doubt a veritable treasure trove of personal information just waiting to be commercialized. Whatever the future has in store for us in terms of Semantic Web there can be little doubt that the Facebook API will have an important part to play in it.

Hunting for bargains - a thing of the past? (image by avlxyz)

Hunting for bargains - a thing of the past? (image by avlxyz)

What about privacy?

I’m fully aware that those of you who are touchy about privacy are probably scandalized by my last suggestion. Right about now you’re probably thinking: “What? make stuff about me publicly available online? What are you nuts?!?”.Luckily while writing this post I ran into an excellent article titled “How much is your privacy worth?“. The article, written by Eric Harber, does an excellent job of presenting the Semantic Web consumers’ paradigm, and moreover illuminates that there’s little that’s new about it. The articles main premise is that we’ve been trading our privacy in for perks and benefits for years and therefore there can be little doubt that we’ll continue to do so in the future. Mr. Harber argues that every loyalty club we’ve ever subscribed to, every coupon we’ve ever cashed and every marketing survey we’ve ever particiapted in all stand as examples of cases where we’ve voluntarily surrendered some of our privacy for a perk offered by a marketer.

Our wish to safeguard our privacy is understandable but the simple truth is that in this data driven day and age privacy is increasingly an illusion. More and more of our daily activities are monitored, individually or in aggregate, whether we’re aware of it or not. The data collected is already being put to use in advertising whether obviously or less so. This trend will increase as the quality of data and the ability to analyze it continue to improve.

Semantic Web shopping will be Opt-in

To me there’s something very comforting about the knowledge that this process of cashing in my privacy for perks isn’t new. It means that the practices and policies that need to be developed in order to enable and regulate marketing on the Semantic Web have a solid base for reference, one that not only takes consumers’ privacy into account, but also gives it a paramount importance. There can be no doubt that the Semantic Web will usher in a new age that will change not only our understanding of what consists of “private information” but also what may be done with it. As was the case with this same dilemma in the past, ultimately legal frameworks will be created that will ensure that a consumers right to privacy is protected and that receiving marketing offers remain an opt-in experience (Anti spam legislation being a prime example).

If you’re skeptic that the legal aspect alone won’t be enough to enforce the sanctity of consumer privacy I submit to you the following argument – companies that abuse privacy will suffer such a backlash from consumers and create such splitting PR headaches for themselves that the practice will quickly become unprofitable. At worst we’ll have to deal with the Semantic Web version of Viagra spam…

Epilogue

Progress is inevitable therefore it becomes the collective responsibility of both marketers and consumers to define to what extent the trade-off between privacy and purchasing perks creates value for all the stakeholders involved. The laws of economics will eventually guarantee that imbalanced models will slowly die out leaving us with those that we not only can, but also want to,  live with.  After experiencing first hand how inefficient online shopping really is I personally would be happy to divulge information about myself if it would save me all the time I spent searching for that perfect stroller… ; )

Semantic Web Shopping – a "how to" for the immediate future – Part 1

April 26th, 2009, By talk

Although opinions about scope and scheduling tend to vary most experts agree that the transformation of “The Web” in to “The Semantic Web” is only a matter of time.
Based on the experience from the last major upheaval – the transition to “Web 2.0”, it’s safe to assume that regardless of the details, the transition will be a gradual one. This will be a process of Evolution rather than Revolution.

Change is coming (image by Maria Reyes-McDavis)

Change is coming (image by Maria Reyes-McDavis)

When will it begin?

One need only observe the steady increase over the past two years in the amount of enterprises and services focused on the Semantic Web space to realize that the process is already well under way.

Advances in web technology instigate social change

One of the lessons to be learned from the last transition the Web went through is that advances in web technology are powerful instigators for social adaptations and cultural evolution:

  • Blogging
  • Online social networking
  • Crowd sourcing

These are just a few examples of some of the social adaptations that can be attributed to the transition to Web 2.0. It should be obvious that the transition to Semantic Web will have, indeed is having already, a similar impact. This post is an attempt to predict what impact the transition will have on our habits as consumers.

Buying online today

Our experiences as customers on today’s web are largely modeled on the offline commercial world and can be divided into two categories:

  • Impulse buys
  • Planned purchases

I’ve chosen to concentrate on planned purchases simply because impulse buys are by definition much harder to predict. To simplify things further I’d like to use an example from my own recent experiences:

Stroller Hunting 2.0

Shopping for a stroller isnt childs play... (image by Matt Ryall)

Shopping for a stroller isn't child's play... (image by Matt Ryall)

In order to understand how purchasing on the Semantic Web might differ from what we’re currently used to we first need to be aware of our current practices. As luck may have it my girlfriend and I are expecting our first child and since she’s started her third trimester about a month ago we’ve begun dedicating an increasing amount of time daily to hunting for the perfect baby stroller. By “perfect” I men the stroller best suited to our needs and circumstances. This is a textbook “planned purchase” and serves as a great case-study for this discussion so I’d like to take a closer look at the activities we’ve engaged in as part of our stroller hunt:

  • Consulted with friends that made the same purchase recently.
  • Discussed the purchase between us to define what we’re looking for
  • Used Google and other resources to get a grasp of the stroller market.
  • Compared stroller prices by using both price comparison sites and our own notes.
  • Hunted for stroller bargains on Ebay, Amazon, and others online retailers.
  • Posted “Stroller Wanted” ads on second hand and free-swap sites.

Upon analysis the following underlying commonalities can be identified as being shared between all the activities listed:

  • They’re all motivated by a clearly defined and obvious need.
  • The online activities required we visit specific web services.
  • In order to really get the most value from our online activities multiple repetitions over a period of a few weeks were required.
  • A certain portion of the time we invested turned out to be a dismal waste.
  • All the activities we engaged in required us to aggregate and analyze the data.

The bottom line is that although the Web saved us the effort of getting out of the house to do our research, our online shopping experience turned out to be, perhaps unsurprisingly, not much more than a digitally enhanced bargain hunt. Moreover, when the value of the time my girlfriend and I invested in the purchase is added to the price we paid for the stroller we bought, our purchase,  regretfully, ceases to be anything that can even remotely be classified as a “bargain”…
Shopping on the Semantic Web may well be a very different experience.

The Semantic Web Stroller Hunt

A key element to remember about an ideal Semantic Web is that it’s a web of data where everything is perfectly defined and linked, and moreover all the data is  structured and accessible to computers. When all the data about everything is available online and accessible to computers shopping becomes a task requiring not much more than the indication of intent. The research, price comparisons, bidding all become completely automated.

Here’s a vision of what shopping for a stroller might look like on the Semantic Web:

Being pregnant has an effect on both my girlfriend’s, and my own online activities: Tagged pictures of my girlfriend’s pregnant belly are uploaded to Flickr for far away friends to see, gripes about morning sickness start appearing in our Tweets feeds and Facebook status alerts, we both begin subscribing to feeds from parenting sites, etc.

As our due date approaches the volume of these pregnancy related activities steadily increases.

Each one of our actions by itself is nearly inconsequential, but to all-aggregating and all-reasoning Semantic Web the cumulative effect of all of them combined means only one thing: we’re pregnant and ripe for pregnancy related content and… advertising.

Unlike the advertising we experience today the advertising my girlfriend and I are targeted with takes into account our unique needs and circumstances: We’re only offered stuff likely to be within our price range and supplied by vendors shipping to our region. Our online purchases influence the advertising we’re receiving as well: Ads for items we’ve already purchased are removed and replaced with ads for items that compliment and augment the stuff we’ve already bought.

The sum total of the experience is one in which instead of us having to hunt for baby items the Semantic Web makes sure they hunt for us…

Continue reading - Part 2

Older Posts »