Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The txt file: http://svn.code.sf.net/p/cmusphinx/code/trunk/cmudict/cmudict.0.7a Write a program pronounce.cpp that Lets the user input a word (let's call the input word W). If the word is

image text in transcribed

image text in transcribed

The txt file:

http://svn.code.sf.net/p/cmusphinx/code/trunk/cmudict/cmudict.0.7a

Write a program pronounce.cpp that Lets the user input a word (let's call the input word W). If the word is not found in the dictionary, print "Not found". Otherwise, report: o Pronunciation the pronunciation of the word W (as given in the dictionary) o Identical other words from the dictionary with the same pronunciation as W, o Add phoneme words that can be obtained from Wby adding one phoneme, o Remove phoneme words that can be obtained from W by removing one phoneme, o Replace phonemewords that can be obtained from Wby replacing one phoneme. When listing words, include all words from the dictionary that meet the criteria, the order of listed words should be the same as they appear in the dictionary Your program should expect that the dictionary file cmudict.0.7a is located in the current working directory User input should be case-insensitive (accepting donut, DONUT, DOnUt , etc.) Please, don't make complex user interface that allows multiple queries. The program should just ask for one word, report the answer, and exit. See examples below. Write a program pronounce.cpp that Lets the user input a word (let's call the input word W). If the word is not found in the dictionary, print "Not found". Otherwise, report: o Pronunciation the pronunciation of the word W (as given in the dictionary) o Identical other words from the dictionary with the same pronunciation as W, o Add phoneme words that can be obtained from Wby adding one phoneme, o Remove phoneme words that can be obtained from W by removing one phoneme, o Replace phonemewords that can be obtained from Wby replacing one phoneme. When listing words, include all words from the dictionary that meet the criteria, the order of listed words should be the same as they appear in the dictionary Your program should expect that the dictionary file cmudict.0.7a is located in the current working directory User input should be case-insensitive (accepting donut, DONUT, DOnUt , etc.) Please, don't make complex user interface that allows multiple queries. The program should just ask for one word, report the answer, and exit. See examples below

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Online Market Research Cost Effective Searching Of The Internet And Online Databases

Authors: John F. Lescher

1st Edition

0201489295, 978-0201489293

More Books

Students also viewed these Databases questions

Question

=+ (c) The same, but suppose that 22 is uncountable.

Answered: 1 week ago

Question

What is the effect of word war second?

Answered: 1 week ago