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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 07:00, chuchi24
Robots with telescoping arms are sometimes used to perform tasks (e. g., welding or placing screws) where access may be difficult for other robotic types. during a test run, a robot arm is programmed to extend according to the relationship r = 3 + 0.5cos(4θ) and the arm rotates according to the relationship θ=−π4t2+πt , where r is in feet, θ is in radians, and t is in seconds. use a computer program to plot the path of tip a in x and y coordinates for 0 ≤ t ≤ 4s.
Answers: 2
image
Computers and Technology, 23.06.2019 01:30, winstonbendariovvygn
1. which of the following is a search engine? a) mozilla firefox b)internet explorer c)google d)safari 2. which of the following statements is true? a) all search engines will provide the same results when you enter the same query. b) all search engines use the same amount of advertisements. c) some search engines are also browsers. d) search engines often provide different results, even when you enter the same query.
Answers: 2
image
Computers and Technology, 23.06.2019 02:00, HannahVance99
In the context of an internet connection, llc stands for leased line connection liability limited company local loop complex local loop carrier
Answers: 1
image
Computers and Technology, 23.06.2019 07:00, bskyeb14579
Why is investing in a mutual fund less risky than investing in a particular company's stock? a. mutual funds only invest in blue-chip stocks. b. investments in mutual funds are more liquid. c. mutual funds hold a diversified portfolio of stocks. d. investments in mutual funds offer a higher rate of return.
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 in other subjects:

Konu
Mathematics, 26.03.2021 18:30
Konu
English, 26.03.2021 18:30