Question

Positional Indexes: Example Query: to, be2 or3 not4 tos be То, 993427: (1: (7, 18, 33, 72, 86, 231): 2: (1, 17, 74, 222, 255

what is the positional index and I want you to solve this example please in information Retrieval ?

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Positional indexes are a more efficient way for information retrieval. we store postings of the form docID: <position1, position2, Position3....

the query is 'to be or not to be'. The postings lists is: to, be, or, not. We have to intersect the postings lists for to and be. We need to first look for documents that contains both. After that we look for places in the document where there is occurrence of be with index one higher than position of to .In the above list given in picture, the pattern of occurrences that is a possible match is 4: <8, 16, 190, 429, 433> and 4: <17, 191, 291, 430, 434>

index of 'be' is one higher than index of 'to'

index of 'to'....16

index of 'be'...17

index of 'to'....190

index of 'be'...191

index of 'to'....429

index of 'be'...430

index of 'to'....433

index of 'be'...434

In the given example the meaning is the word "TO" has a document frequency 993427 and in document 1 it occurs at positions

7,18,33,72,86,231 i.e occurance of to is 6 times in document 1.

TO, 993427:

1:<7, 18, 33, 72, 86, 231>

2: <1, 17, 74, 222, 255>

4: <8, 16, 190, 429, 433>

5: <363, 367>

7: <13, 23, 191>

BE, 178239:

   1: <17, 25>

4: <17, 191, 291, 430, 434>

5: <14, 19, 101>

Query: “to1 be2 or3 not4 to5 be6

we want to search "to be" so we need to progressively intersect the two documents given

in both the documents we have document 1

1:<7, 18, 33, 72, 86, 231> and

1: <17, 25>

when we merge these we don't have a match so we discard that document.

Document number 2 is not there in the 'Be' list .so we discard that also. doc id 2 is not present in the 'be' list

then we take document number 4 from both the list

from 'to' list we have 4: <8, 16, 190, 429, 433>

and from 'Be ' list we have 4: <17, 191, 291, 430, 434>

when we look at this doc id matches.Both have doc id=4. Then we have to merge them.when look at both we could find a match

kuWXsvgAAAABJRU5ErkJggg==

Matches in both documents are underlined with colors.we have three matches in the document 4. Hence we may conclude that Document 4 is a match.

4: <8, 16, 190, 429, 433 4: <17,191, 291, 430, 434>

Add a comment
Know the answer?
Add Answer to:
What is the positional index and I want you to solve this example please in information Retrieval ?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Hi it's python I imported a data which are so many words in txt and I arranged and reshaped with ...

    Hi it's python I imported a data which are so many words in txt and I arranged and reshaped with alphabetically both rows and columns I was successful with these steps but I am stuck with next step below is my code and screenshot import numpy as np import pandas as pd data=pd.read_csv("/Users/superman/Downloads/words_file2.txt",header=None) df_input=pd.DataFrame(data) df_output=pd.DataFrame(np.arange(676).reshape((26,26)), index = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'], columns = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z']) df_output.index.name="Start" df_output.columns.name="End" df_output This below screen shot is what I have to find I have to find each word...

  • 33 On May 6, Jim Ryan borrowed $14,000 from Lane Bank at 7 % interest. Jim...

    33 On May 6, Jim Ryan borrowed $14,000 from Lane Bank at 7 % interest. Jim plans to repay the loan on March 11. Assume the loan is on ordinary interest. How much will Jim repay on March 11? (Use Days in a year table) (Round your answer to the nearest cent.) Jm repay etbook 7-1 TABLE Exact days-in-a-year calendar (excluding leap year)" Day of month 30 31 30 31 28 31 30 31 31 30 31 31 Dec Mar...

  • Partial payments are made on the dates indicated. Use the United States rule to determine the...

    Partial payments are made on the dates indicated. Use the United States rule to determine the balance due on the note at the date of maturity. (The Effective Date is the date the note was written.) Assume the year is not a leap year. Effective Partial Payment Maturity Principal Date Amount Date Date $1900 19% Sept. 1 $500 Oct. 1 Dec. 1 $500 Nov. 1 Click the icon to view a table of the number of the day of the...

  • Please help with problem 8-56 and 8-57. Thank you!!! 8-56 106 Assume you are planning the...

    Please help with problem 8-56 and 8-57. Thank you!!! 8-56 106 Assume you are planning the confirmation of accounts receivable. There are 2,000 customer accounts with a total book! value of $5,643,200. Tolerable misstatement is set at $200,000, and expected misstatement is $40,000. The risk of incorrect accep- tance is 30%. The ratio of expected to tolerable misstatement is 20%, and the ratio of tolerable misstatement to the population is 3.5% (round down to 3% for use in Exhibit 8.7)...

  • Design Column B2: KL 30, Use an HSS section, Fy 46 ksi. pe 0.9 Use table 10.5 from handout Calcul...

    Answer the following blanks for design column B2 Design Column B2: KL 30, Use an HSS section, Fy 46 ksi. pe 0.9 Use table 10.5 from handout Calculate the following: Column tributary area: Artb (At2) Total column load: Pu (kips)- Column nominal Load: Pr (Kkips)- Lightest Column Section: Column Selection Table Pu (kips)- BLE 10.5 Safe Factored Loads for Selected 46-ksi Yield Stress Tube Steel Columns Effective Length (KL) in feet Area (in.2) 06 8 10 12 14 16 18...

  • 40kN Uniform Load W kN/m X Span L L/2 Figure 1 SPAN L 6 W 11Kn/m Beam is 200 UB 18.2 Use the diagram above and the W an...

    40kN Uniform Load W kN/m X Span L L/2 Figure 1 SPAN L 6 W 11Kn/m Beam is 200 UB 18.2 Use the diagram above and the W and L values assigned to you to: a) Use your shear force diagram to calculate the Maximum longitudinal Shear Stress and where it occ Ccurs. b) Calculate the longitudinal Shear Stress at d/4 from the neutral axis. Check Figures 283 below this table BENDING MOMENT DIAGLAM Kp/m f:40 zm 7.5 KN-M 90...

  • A partial payment is made on the date indicated. Use the United States rule to determine...

    A partial payment is made on the date indicated. Use the United States rule to determine the balance due on the note at the date of maturity. (The Effective Date is the date the note was written.) Assume the year is not a leap year. Effective Partial Payment Maturity Principal Rate Date Amount Date Date $4000 4% April 1 $1000 May 1 June 1 Click the icon to view a table of the number of the day of the year...

  • On the following code there is an error bc you are not reverting back to the...

    On the following code there is an error bc you are not reverting back to the original order after a sort. For the next sort you are passing the same reference variable to the next method. But that will point to the same (already sorted) array on the memory. Hence after the first sorting method, all three sorting methods are working on the already sorted array. Do the following : Just copy each data set to 4 different arrays -...

  • Please determine the IDENTITY of the unknown compound and explain how each peak / data point...

    Please determine the IDENTITY of the unknown compound and explain how each peak / data point from the following instruments led to that identification. What does the gcms indicate. Thank you very much! (The GCMS data is just a long set of numbers which is why the question appears so long). IR of unknown: NMR unknown Proton Graphs (first is overall graph, others that follow are zoomed in sections): NMR unknown Carbon Graphs (first is overall graph, others that follow...

  • Could you please help me with questions 1a-1b please? ( since i could only find the formula neede...

    Could you please help me with questions 1a-1b please? ( since i could only find the formula needed for 1a, if u aren't sure with 1b u can just do 1a but please dont reply "no enough data given " because i have a lil systemical problem with replying the comments) * the first question was asked to complete the anova table ( table 9.1 in the picture ) by using the formulas ( in the pictures) * I have...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT