Differences between revisions 10 and 11
Revision 10 as of 2004-04-08 23:28:11
Size: 2617
Editor: yakko
Comment:
Revision 11 as of 2005-06-28 02:53:05
Size: 2440
Editor: yakko
Comment:
Deletions are marked like this. Additions are marked like this.
Line 41: Line 41:
{{{
                    n(d,t)
  r(d,t) = log( 1 + ------ )
                     n(d)
[[latex2($$r(d,t)=\log(1+\frac{n(d,t)}{n(d)}$$)]]
Line 46: Line 43:
  n(d) denotes the number of terms in the document, and    n(d,t) denotes the number of occurrences of term t in the document d.
}}}
n(d) denotes the number of terms in the document, and n(d,t) denotes the number of occurrences of term t in the document d.
Line 54: Line 49:
{{{
        1
 
IDF = ---- where n(t) denotes the number of documents that contain the term t.
       n(t)
}}}
[[latex2($$IDF = \frac{1}{n(t)}$$)]] where n(t) denotes the number of documents that contain the term t.
Line 64: Line 55:
{{{
           --- r(d,t)
  r(d,Q) = \ ------
           /__ n(t)
[[latex2($$r(d,Q)=\sum_{t \in Q}\frac{r(d,t)}{n(t)}$$)]]
Line 69: Line 57:
           t element of Q

           --- w(t) r(d,t)
  r(d,Q) = \ ----------- where w(t) is a weight specified by the user.
           /__ n(t)

           t element of Q


}}}
[[latex2($$r(d,Q)=\sum_{t \in Q}\frac{w(t) r(d,t)}{n(t)}$$)]] where w(t) is a weight specified by the user.
Line 84: Line 63:
   
Line 88: Line 64:

Back to ComputerTerms

Terms

This link provides a nice glossary of terms http://www.cs.jhu.edu/~weiss/glossary.html

Description

Examples: Library catalogs

Generally the data are organized as a collection of documents.

Querying

Querying of unstructured textual data is referred to as Information Retrieval. It covers the following areas:

  • Querying based on keywords
  • The relevance of documents to the query
  • The analysis, classification and indexing of documents.

Queries are formed using keywords and logical connectives and, or, and not where the and connective is implicit.

Full Text --> All words in a document are keywords. We use term to refer to words in a document, since all words are keywords.

Given a document d, and a term t one way of defining the relavence r is

latex2($$r(d,t)=\log(1+\frac{n(d,t)}{n(d)}$$)

n(d) denotes the number of terms in the document, and n(d,t) denotes the number of occurrences of term t in the document d.

KEY: In the inromration retrieval community, the relevance of a document to a term is referred to as term frequency, regardless of the exact formula used.

Inverse Document frequency defined as:

latex2($$IDF = \frac{1}{n(t)}$$) where n(t) denotes the number of documents that contain the term t.

Here we have a low IDF if the word is found in many of the documents. If it is found in only a few, then it is probably a good term to use!

Thus the relavance of a document d to a set of terms Q is then defined as

latex2($$r(d,Q)=\sum_{t \in Q}\frac{r(d,t)}{n(t)}$$)

latex2($$r(d,Q)=\sum_{t \in Q}\frac{w(t) r(d,t)}{n(t)}$$) where w(t) is a weight specified by the user.

KEY: Stop words are words that are not indexed such as and, or the, a etc.

Proximity: if a the terms occur close to each other in the document, the document would be ranked higher than if they occur far apart. We could (although we don't) modify the formula r(d,Q) to take proximity into account.

Back to ComputerTerms

InformationRetrieval (last edited 2021-10-26 16:08:37 by scot)