Information Retrieval
Exercises: https://cs.nju.edu.cn/lwj/course/wsm/homework2_solution.pdf.
16 flashcards · Computer Science · by lakesare
What's feature?
The general description of multimedia information retrieval begins by assuming that features of the media items in a database have been computed or are otherwise stored and easily retrievable given a unique identifier for the media item. Examples of such features include: predominant colour of an image average loudness of an audio track seconds of camera angle changes in a video user-supplied tags on a photograph.
What's stemming?
sleepily -> sleep Normalise inflected or derived words to the same form: plurals, verb participles and the like all being converted to the same internal word, so that queries for ‘query’ will match documents containing the word ‘queries’, and searches for ‘sleepily’ might retrieve documents containing ‘sleep’. In linguistic morphology and information retrieval, stemming is the process of reducing inflected words to their word stem, base or root form—generally a written word form.
What's taxonomy VS folksonomy?
taxonomy - formal, hierarchical classification. Taxonomy, conversely, is a formal, hierarchical method of classification. folksonomy - loosely-structured classification via tags Folksonomy is a way of describing crowd-driven categorisation of information. This flat, loosely-structured form of classification via tags became more widely used around the time of social bookmarking sites like delicious becoming popular.
Name 2 types of edit distances. In computational linguistics and computer science, edit distance is a way of quantifying how dissimilar two strings (e.g., words) are to one another by counting the minimum number of operations required to transform one string into the other.
Levenshtein distance - allows deletion, insertion and substitution. Hamming distance - allows only substitution, hence, it only applies to strings of the same length.
[information theory, linguistics, computer science] What is Levenshtein distance?
Minimum number of single-character edits (insertions, deletions or substitutions) required to change one word into the other. For example, the Levenshtein distance between "kitten" and "sitting" is 3, since the following three edits change one into the other, and there is no way to do it with fewer than three edits: kitten → sitten (substitution of "s" for "k") sitten → sittin (substitution of "i" for "e") sittin → sitting (insertion of "g" at the end).
[information theory, linguistics, computer science] What is Hamming distance?
Minimum number of substitutions are between 2 strings of the same length. A special case of the general edit distance is the Hamming distance, 5 where the distance between two strings of the same length is the edit distance where the only permitted operation is substitution. The Hamming distance therefore computes the number of places where the strings differ.
What's term-frequency–inverse-document-frequency (tf-idf) method to rank the page in a search engine?
tf-idf = term-frequency * inverse-document-frequency. Term-frequency - for each document, the number of times that term (which may be a stemmed version of a query word) is present in the document. term-frequency of the term i = number of times term i occurs / number of times terms 'k' occur. Inverse-document-frequency - how rare the term is among documents. Dividing the total number of documents by the number of documents containing the term, and then taking the logarithm of that quotient. Comb…
When which is worse: false negative false positive There are two distinct ways in which a retrieval system can fail to behave in a desired manner: it can retrieve items which are not desired by the user (false positives); and it can fail to retrieve items which are desired (false negatives).
False negative is worse when we are searching in a small dataset. A lot of false positives is worse when it's google, and we have to dig through the piles of dirt. For example, in a multimillion-document search engine (such as Google’s Web search engine), false negatives are not too critical, because there are usually enough true positives to satisfy the user, while a highly-ranked false positive is bad, as it will decrease the perceived quality of the search engine. By contrast, in a system wh…
What's precision VS recall?
Precision - true positives as opposed to what was returned. what proportion of the retrieved items were in fact relevant to the queryRecall - true positives as opposed to what should have been returned. what proportion of the relevant items in the database have been retrieved by the system
An Information Retrieval system returns 8 relevant documents, and 10 nonrelevant documents. There are a total of 20 relevant documents in the collection. What is the precision of the system on this search, and what is its recall?
Precision = 8/18 = 0.44 Recall = 8/20 = 0.4
What's bipartate graph?
A graph whose vertices can be divided into two disjoint sets (so that edges only go from U to V). When modelling relations between two different classes of objects, bipartite graphs very often arise naturally. For instance, a graph of football players and clubs, with an edge between a player and a club if the player has played for that club.
Name an example of the feature: for images for animation for sound
for images - average luminance, CIE L∗a∗ b coordinates The CIE L ∗a ∗ b ∗ space has been designed in order to match the Euclidean distances between the CIE coordinates of two colours, and the perceptual differences reported by experimental subjects; the CIE L ∗a ∗ b ∗ co-ordinates make up a vector feature for colour.for animation - shot detection In tools for video editing, it is useful to be able to determine automatically when the camera angle has changed via shot detection. This allows the s…
Media documents A and B have the following feature values: Compute the distance between documents A and B using Euclidean distance.
A = (24, 112) B = (141, 53) √ [(A1 - B1)2 + (A2 - B2)2] = √ [(24 - 141)2 + (112 - 53)2] = 131.48 The Euclidean distance is 131. If there was a document C with the distance 156 to the document A, - it would be less similar to A, as distance is longer.
Two media documents have the following feature values: Name 3 other distance metrics that could be used to measure the distance for these features.
1-norm (Manhattan distance) 2-norm (Euclidean distance) 3-norm metrics that require binary features would not be appropriate. Not all candidates explained that the lower distance indicates similarity. Finally, other metrics could include Manhattan distance and p-norm; metrics that require binary features would not be appropriate.
We should use a vector feature called chromagram. What is typically done, instead of using the spectrum directly, is to compute the power spectrum (the squared magnitude of each spectrum entry), and then collect the power into logarithmically-spaced bins. In this way we have removed the phase information (by taking the squared magnitude) and aggregated the effect of nearby frequencies in a perceptually reasonable way. While the chromagram is a feature measuring pitch content, a different transf…
What's Parsons code?
The Parsons code is a simple notation used to identify a piece of music through melodic motion — movements of the pitch up and down. * - first note of a piece of music U - Up D - Down R - Repeat