subject

As some of you know well, and others of you may be interested to learn, a number of languages (including chinese and japanese) are written without spaces between the words. consequently, software that works with text written in these languages must address the word segmentation problem--inferring li_kely boundaries between consecutive words in the exercises text. if english were written without spaces, the analogous problem would consist of taking a string like "meetateight" and deciding that the best segmentation is "meet at eight" (and not "me et at eight," or "meet ate ight," or any of a huge number of even less plausible alternatives). how could we automate this process? a simple approach that is at least reasonably effective is to find a segmentation that simply maximizes the cumulative "quality" of its individual constituent words. thus, suppose you axe given a black box that, for any string of letters x = xk, will return a number quality(x). this number can be either positive or negative; larger numbers correspond to more plausible english words. (so quaiity("rne") would be positive, while quality("ght") would be negative.) given a long string of letters y = yly2 ¯" "yn, a segmentation of y is a partition of its letters into contiguous blocks of letters; each block corresponds to a word in the segmentation. the total quality of a segmentation is determined by adding up the qualities of each of its blocks. (so we’d get the right answer above provided that quaiity("rneet") + quality("at") + quality(" eight") was greater than the total quality of any other segmentation of the string.) give an efficient algorithm that takes a string y and computes a segmentation of maximum total quality. (you can treat a single call to the black box computing quality(x) as a single computational step.) (a final note, not necessary for solving the problem: to achieve better performance, word segmentation software in practice works with a more complex formulation of the problem--for example, incorporating the notion that solutions should not only be reasonable at the word level, but also form coherent phrases and sentences. if we consider the example "theyouthevent," there are at least three valid ways to segment this into common english words, but one constitutes a much more coherent phrase than the other two. if we think of this in the terminology of formal languages, this broader problem is like searching for a segmentation that also can be parsed well according to a grammar for the underlying language. but even with these additional criteria and constraints, dynamic programming approaches lie at the heart of a number of successful segmentation systems.)

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 08:10
Technician a says that if a valve is open when a piston rises to the very top of a cylinder, the piston may actually strike the valve head and cause serious engine damage. technician b says if the camshaft is located in the engine block, then the engine is called an overhead valve engine, ohv engine, or an in-block camshaft. who is right? a. b only b. both a and b c. a only d. neither a nor b
Answers: 3
question
Computers and Technology, 22.06.2019 12:00
The following function returns a string of length n whose characters are all 'x'. give the order of growth (as a function of n) of the running time. recall that concatenating two strings in java takes time proportional to the sum of their lengths. public static string f(int n) { if (n == 0) return ""; if (n == 1) return "x"; return f(n/2) + f(n - n/2); } options: a) constant b) logarithmic c) linear d) linearithmic e)quadratic f)cubic g) exponential
Answers: 2
question
Computers and Technology, 22.06.2019 17:00
Acase study allows a more detailed look at the life of a single subject than any other study.
Answers: 3
question
Computers and Technology, 23.06.2019 01:00
Complete the sentence about a presentation delivery method
Answers: 2
You know the right answer?
As some of you know well, and others of you may be interested to learn, a number of languages (inclu...
Questions
question
Arts, 13.11.2020 01:50
question
History, 13.11.2020 01:50
question
Mathematics, 13.11.2020 01:50
question
History, 13.11.2020 01:50
question
Mathematics, 13.11.2020 01:50
Questions on the website: 13722367