diff --git a/02_building.ipynb b/02_building.ipynb index d77dd44..0467138 100644 --- a/02_building.ipynb +++ b/02_building.ipynb @@ -533,9 +533,9 @@ "source": [ "### Task 3\n", "\n", - "Construct a function called `and_query` that takes as input a single string, consisting of one or more words, and returns as function value a list of matching documents. `and_query`, as its name suggests, should require that all query terms are present in the documents of the result list.\n", + "Construct a function called `query_and` that takes as input a single string, consisting of one or more words, and returns as function value a list of matching documents. `query_and`, as its name suggests, should require that all query terms are present in the documents of the result list.\n", "\n", - "For that, access the variable `inverted_index` from above and use the method `merge_and` that you defined. Also use the `tokenize` and `preprocess` functions we defined above to tokenize and preprocess your query.\n", + "For that, access the variable `inverted_index` from above and use the method `merge_sorted_and` that you defined. Also use the `tokenize` and `preprocess` functions we defined above to tokenize and preprocess your query.\n", "\n", "Again demonstrate the working of your function with an example (choose one that leads to fewer than 100 hits to not overblow this notebook file)." ] @@ -586,7 +586,7 @@ "source": [ "### Task 5\n", "\n", - "Why does `query_sorted_and('music guitar')` not return our example paper 28450846, even though it mentions these terms in the title and abstract? (You do not have to implement anything to fix this yet!)" + "Why does `query_and('music guitar')` not return our example paper 28450846, even though it mentions these terms in the title and abstract? (You do not have to implement anything to fix this yet!)" ] }, {