ArticleslgStudy

science

Web query classification

Web query classification is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Web query classification rather than just read about it. In short: A web query topic classification/categorization is a problem in information science. The task is to assign a web search query to one or more predefined categories, based on its topics.

Key takeaways

  • Web query classification belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Web query classification to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Web query classification from memory before moving on to harder problems.

Reference excerpt

A web query topic classification/categorization is a problem in information science. The task is to assign a web search query to one or more predefined categories, based on its topics. The importance of query classification is underscored by many services provided by Web search. A direct application is to provide better search result pages for users with interests in different categories. For example, users issuing a Web query such as "apple" might expect to see Web pages related to the fruit apple, or they may prefer to see products or news related to the computer company. Online advertisement services can rely on the query classification results to promote different products more accurately. Search result pages can be grouped according to the categories predicted by a query classification algorithm. However, the computation of query classification is non-trivial. Different from the document classification tasks, queries submitted by Web search users are usually short and ambiguous; also the meanings of the queries are evolving over time. Therefore, query topic classification is much more difficult than traditional document classification tasks.

Difficulties Web query topic classification is to automatically assign a query to some predefined categories. Different from the traditional document classification tasks, there are several major difficulties which hinder the progress of Web query understanding:

Derive an appropriate feature representation for Web queries Many queries are short, and query terms are often noisy. For instance, in the KDDCUP 2005 dataset, queries containing 3 words are the most frequent (22%). Additionally, 79% of queries consist of no more than 4 words. A user query frequently carries multiple meanings. For example, "apple" could refer to a type of fruit or a computer company, while "Java" could signify a programming language or an island in Indonesia. In the KDDCUP 2005 dataset, a majority of queries contain more than one meaning. Therefore, only using the keywords of the query to set up a vector space model for classification is not appropriate. Query-enrichment based methods start by enriching user queries to a collection of text documents through search engines. Thus, each query is represented by a pseudo-document which consists of the snippets of top ranked result pages retrieved by search engine. Subsequently, the text documents are classified into the target categories using synonym based classifier or statistical classifiers, such as Naive Bayes (NB) and Support Vector Machines (SVMs).

Adapting to changes of the queries and categories over time The meanings of queries may also evolve over time. Therefore, the old labeled training queries may be out-of-data and useless soon. How to make the classifier adaptive over time becomes a big issue. For example, the word "Barcelona" has a new meaning of the new micro-processor of AMD, while it refers to a city or football club before 2007. The distribution of the meanings of this term is therefore a function of time on the Web. Intermediate taxonomy based method first builds a bridging classifier on an intermediate taxonomy, such as Open Directory Project (ODP), in an offline mode. This classifier is then used in an online mode to map user queries to the target categories via the intermediate taxonomy. The advantage of this approach is that the bridging classifier needs to be trained only once and is adaptive for each new set of target categories and incoming queries.

Using unlabeled query logs to help with query classification Because manually labeling training data for query classification is costly and time-consuming, researchers have looked for ways to use the vast amounts of unlabeled data available in web search engine query logs. These logs capture how people search for information and interact with search engines. Over time, they have become a valuable source of information, reflecting users' search behavior and collective knowledge of the World Wide Web. Query clustering method tries to associate related queries by clustering "session data", which contain multiple queries and click-through information from a single user interaction. They take into account terms from result documents that a set of queries has in common. The use of query keywords together with session data is shown to be the most effective method of performing query clustering. Selectional preference based method tries to exploit some association rules between the query terms to help with the query classification. Given the training data, they exploit several classification approaches including exact-match using labeled data, N-Gram match using labeled data and classifiers based on perception. They emphasize on an approach adapted from computational linguistics named selectional preferences. If x and y form a pair (x; y) and y belongs to category c, then all other pairs (x; z) headed by x belong to c. They use unlabeled query log data to mine these rules and validate the effectiveness of their approaches on some labeled queries.

Applications Metasearch engines send a user's query to multiple search engines and blend the top results from each into one overall list. The search engine can organize the large number of Web pages in the search results, according to the potential categories of the issued query, for the convenience of Web users' navigation. Vertical search, compared to general search, focuses on specific domains and addresses the particular information needs of niche audiences and professions. Once the search engine can predict the category of information a Web user is looking for, it can select a certain vertical search engine automatically, without forcing the user to access the vertical search engine explicitly. Online advertising aims at providing interesting advertisements to Web users during their search activities. The search engine can provide relevant advertising to Web users according to their interests, so that the Web users can save time and effort in research while the advertisers can reduce their advertising costs. All these services rely on the understanding Web users' search intents through their Web queries.

See also Document classification Web search query Information retrieval Query expansion Naive Bayes classifier Support vector machines Meta search Vertical search Online advertising

References

Further reading Shen. "Learning-based Web Query Understanding". Phd Thesis, HKUST, June 2007.

Worked examples

Example 1 — a first encounter with Web query classification

Start with the simplest possible case. Write down what Web query classification claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Web query classification before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Web query classification ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Web query classification

In research
Web query classification appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Web query classification in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Web query classification is common in secondary-school and first-year university syllabi. It links to neighbouring topics Information retrieval techniques, Internet search, so understanding it makes those chapters shorter.
In everyday life
Look for Web query classification outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Web query classification” →

How to study Web query classification in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Web query classification means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Web query classification out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Web query classification in simple terms?

A web query topic classification/categorization is a problem in information science. The task is to assign a web search query to one or more predefined categories, based on its topics.

Why does Web query classification matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Web query classification?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Web query classification.

Tags

  • Information retrieval techniques
  • Internet search

Keep exploring