Reference no: EM133246285
Natural Language Processing - Python Programming
Question 1. a. Define homonymy and polysemy and give an example of each.
b. Define NLU and NLG and give an example of each.
Question 2. You are given the following grammar for expressions:
E → I I → a
E → E + E I → b
E → E * E I → 0
E → (E) I → 2
a. Show parse tree(s) for the expression 2 + 2 * 2
b. Describe any interesting observations in your answer to a.
Question 3. Consider the following grammar and sentence:
Nominal --> Nominal PP
Sentence: I booked a flight from LA
a. In what way is this sentence ambiguous? Describe different interpretations of this sentence.
b. Show the parse trees for this sentence and where the ambiguity manifests in the parse trees.
Question 4. The image below shows Google search results for the query "harry potter"
As the results show, the query could represent any of the seven books in the harry potter franchise, any of the film adaptations of the books, a theme park, or a ride, an audiobook, cartoons, et al.
a. Discuss why google shows a mix of such results and what factors can influence the search results for this query that will be presented to you.
b. Consider the following sentence:
The bank can guarantee deposits will eventually cover future tuition costs because it invests in adjustable-rate mortgage securities.
The word bank has multiple senses. Use Wordnet to show the top two sense, glossaries and examples for bank and describe (at a high level) how you can use this information to find the proper sense for this word in a sentence.
Question 5. You are building an online moving streaming service which enables looking up information on movies, genres, directors, actors and customer movie preferences.
a. What is the customers intent (i.e. what are they looking for) with the following queries? (these are individual queries, not queries entered in succession)
"Drama", "Jurassic Park", "Indiana Jones: Raiders of the lost ark", "Steven Spielberg"
b. A customer searches for "Indiana Jones" but clicks on and watches "Jurassic Park" - what insights can you get from this customer action?
c. The customer searches for "Indiana Jones: Raiders of the lost Ark" but it's not available in their region (US, EU, Asia). What search results would you show the customer? Discuss how you would build that experience from a technical design perspective.