Question

1) The application of compiler construction techniques in natural language processing (NLP) You should cover: 1)...


1) The application of compiler construction techniques in natural language processing (NLP)

You should cover:
1) What is the problem?
2) What is the compiler construction techniques used to solve the problem
3) How to solve the problem using the compiling techniques.

Homework Answers

Answer #1

1) Problems:  

i) Lexical ambiguity: It is at very primitive level such as word level.

ii) Syntax-Level Ambiguity: A sentence can be parsed in to many different ways.

iii) Referential ambiguity: Refers to something using pronouns.

iv) An input can have different meaning.

v) Many inputs can have same meaning.

2) Compiler Construction Techniques:

i) Parser Generator: It produces syntax parsers from the input that is based on a grammatical description of programming language or on a context-free grammar. It is useful as the syntax analysis phase is highly complex and consumes more manual and compilation time.
Example: EQM, PIC

ii) Scanner Generator: It generates lexical analyzers from the input that consists of regular expression description based on tokens of a language. It generates a finite automaton to recognize the regular expression.
Example: Lex

iii) Syntax directed translation engines: It generates intermediate code with the three address format from the i/p that consists of a parse tree. These engines have routines to traverse the parse tree and then produces the intermediate code. In this, each node of the parse tree is associated with one or more translations.

iv) Automatic code generators: It generates the machine language for a target machine. Each operation of the intermediate language is translated using a collection of rules and then is taken as an input by the code generator. A template matching process is used.

v) Data flow analysis engines: It is used in code optimization. Data flow analysis is a key part of the code optimization which gathers the information, that is the values that flow from one place of a program to another part.

vi) Compiler construction toolkits: Provides an integrated set of routines that aids in building compiler components or in the construction of various phases of compiler.

3) Solving Problems using compiler techniques:

Know the answer?
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
Similar Questions
I think the language is Assembly language. Thank you! 1. A finite-state machine is a specific...
I think the language is Assembly language. Thank you! 1. A finite-state machine is a specific application of what type of data structure? 2. In a finite-state machine diagram, what do the nodes represent? 3. In a finite-state machine diagram, what do the edges represent?
3. Duolingo (a language learning mobile application) claims that app users who are also taking language...
3. Duolingo (a language learning mobile application) claims that app users who are also taking language classes will have a significantly larger vocabulary compared to people taking language classes who are not using Duolingo. Two independent samples of language learners (‘Duolingo+class’ (μ1), and ‘class only’ (μ2)) were sampled. Both groups were given a vocabulary test. Using an alpha of 0.025, determine whether there is a significant difference in vocabulary size between groups. The data are below. 
3a. State the null...
C++ language 1. Programs with memory leaks a should be executed in a secure environment to...
C++ language 1. Programs with memory leaks a should be executed in a secure environment to prevent theft of data by hackers. b will eventually crash if allowed to execute for long periods of time. c should be compiled with a special compiler that detects and flags the memory leaks. d should be executed under an operating system that can dynamically plug the leaks. e none of these. 2. An  lvalue is a a value of type long. b a memory...
1. Explain how hostility and anger can have an effect on health, and techniques you do/would...
1. Explain how hostility and anger can have an effect on health, and techniques you do/would use personally to control them. 2. Discuss emotion-centered coping and problem-centered coping, particularly the techniques you would use for each.
1.) Do you think you use racist, sexist, ageist, or heterosexist language? (or have you before?)...
1.) Do you think you use racist, sexist, ageist, or heterosexist language? (or have you before?) If you were to hear someone using this type of language, what would you do? 2.) What perceptions do you have of women who retain their own last name when they marry? How about women who take their husband’s/wife’s last name? How about women who take hyphenated names? What does this have to do with language, culture, and communication? Explain your answer. 3.) Discuss...
Given the following application problem, solve it using the steps 1--5: 1) Declare the variables 2)...
Given the following application problem, solve it using the steps 1--5: 1) Declare the variables 2) Set up a table with rows and columns corresponding to the different quantities talked about 3) Write a system of equations whose solution will provide the answer to the question asked 4) Solve it using a matrix. 5) Interpret your solution. An art teacher finds that colored paper can be bought in three different packages. The first package has 20 sheets of white paper,...
1. Find one ad that uses a central route processing strategy. Describe how you know they...
1. Find one ad that uses a central route processing strategy. Describe how you know they are using central route processing and why it is a good example of a central route message. 2. Find another ad, preferably for a similar product ,that uses a peripheral route processing strategy. Describe how they are using the strategy and why it is a good example. 3. Draw a conclusion: Based on what you know about the Elaboration Likelihood Model - which processing...
dispute settlement techniques? (2 marks) Answer: 2. When should you choose mediation over other dispute settlement...
dispute settlement techniques? Answer: 2. When should you choose mediation over other dispute settlement techniques? Answer: 3. When should you choose arbitration as a dispute resolution technique? Answer: 4. What are the main steps in the litigation process in the trial division of the Superior Court? Answer: 5. How does a Small Claims Court case differ from one in the trial division of the Superior Court? Answer: 6. Why do business people increasingly opt for ADR rather than civil litigation...
During the past weeks, you have been introduced to software development planning techniques and tools. You...
During the past weeks, you have been introduced to software development planning techniques and tools. You have actually gained some experience using a few design techniques and tools in planning to create an application that meets business requirements. A design document was the resultant outcome of your efforts. You have also coded a couple object-oriented programs that meet these planned-for requirements. These tasks have given you a sense of what is required to plan for and to develop applications. In...
1. Use the techniques for curve sketching that you think are appropriate to sketch the curve...
1. Use the techniques for curve sketching that you think are appropriate to sketch the curve defined f(x)=(4-x^2)/(x^2-1). Label all key information. (limit analysis, find limit approaches -1 from the left, -1 from the right, f(-1)=?, +1 from the left, and +1 from the right, f(+1)=? 2. Solve the following equations and each of the variable 1. 3a-2b+c=0 2. 0=3a+b 3. 2=a+b+c+d 4. 3= -a+b-c+d