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 23:00
In which part of a professional email should you try to be brief, but highly descriptive?
Answers: 1
question
Computers and Technology, 24.06.2019 05:30
Someone plzz me which of these defines a social search? a. asking a search engine a question that is answered by a real person on the other sideb. modifying search results based on popularity of a web pagec.modifying search results based on a ranking of a web page
Answers: 2
question
Computers and Technology, 24.06.2019 19:00
In python a floating-point number must be written using scientific notation?
Answers: 1
question
Computers and Technology, 24.06.2019 22:30
To add additional commands to the quick access toolbar, a user can navigate to the view. backstage status bar design file
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
Mathematics, 04.12.2021 01:00
question
Mathematics, 04.12.2021 01:00
question
English, 04.12.2021 01:00
question
English, 04.12.2021 01:00
Questions on the website: 13722361