Question
There are only four words in the language: awk , yacc , grep , and perl . Each of these words can be either a
There are only four words in the language:awk,yacc,grep, andperl. Each of these words can be either a noun or a verb. Of all noun occurrences, 10% are the wordawk, 20% are the wordyacc, 40% are the wordgrep, and 30% are the wordperl. Of all verb occurrences, 20% are the wordawk, 30% are the wordyacc, 45% are the wordgrep, and 5% are the wordperl.
Using the Markov model described above and the Variable Elimination algorithm, find the probability that the fourth word of the following sentence is a noun:Perl yacc awk awk.
Remember that you can express this sentence with the following Bayes' net:
So in other words, the question is what isP(Q4=noun| O1=perl, O2=yacc, O3=awk, O4=awk)?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started