Məqalələr yazarkən, adətən bütün məqaləni xülasə edən bir xülasə bölməsi olur. Biz avtomatik xülasə yaradılması alqoritmini sınaqdan keçiririk. Alqoritm məqaləni oxuyur və bütün məqaləni xülasə edən bir xülasə hazırlayır. Xülasə ardıcıl paraqraflardan çıxarılan mövzu cümlələrinin birləşdirilməsi ilə formalaşır.
Bu tapşırıq üçün:
- Məqalə bir və ya bir neçə paraqrafdan ibarətdir. - Paraqraf ardıcıl dolu sətrlərin maksimal ardıcıllığıdır. - Cümlə paraqraf daxilində olan, boşluq olmayan simvolla başlayan, , , və ya işarəsi ilə bitən və başqa heç bir , , və ya işarəsi ehtiva etməyən simvolların maksimal ardıcıllığıdır. - Söz cümlənin daxilində olan əlifba simvollarının maksimal ardıcıllığıdır.
Yuxarıdakı təriflərdə "maksimal" termini, yalnız tərifə uyğun ən uzun ardıcıllıqların nəzərdə tutulduğu deməkdir, onların altardıcıllıqları yox. Məsələn, "How now, brown cow?" cümləsində dörd söz var. "now" bu cümlədə bir sözdür, amma "no", "ow" və sair sözlər deyil, çünki onlar maksimal deyillər — onlar daha böyük əlifba ardıcıllığının altardıcıllıqlarıdır.
Paraqrafın mövzu cümləsi, paraqrafın məzmununu ən yaxşı təsvir edən tək cümlədir. Bu tapşırıq üçün, eyni paraqrafda istənilən sonrakı cümlədə təkrar olunan sözlərin sayını maksimallaşdıran ən erkən cümləni seçəcəyik.
Üç cümlədən az olan paraqraflar nəzərə alınmır və xülasəyə daxil edilmir.
Sözlərin unikal olmasını yoxlayarkən böyük/kiçik hərf fərqlərinə baxılmır. Məsələn, "See what I see." cümləsində üç unikal söz var, dörd deyil.
Giriş bir və ya bir neçə məqalədən ibarət olacaq. Hər bir məqalə yalnız *** və ya ****** sətirindən ibarət bir sətrə ilə bitir. Son işarə (******) bütün girişlər toplusunun sonunu göstərir.
- Hər məqalə bir və ya bir neçə paraqrafdan ibarət olacaq. Hər paraqraf bir və ya bir neçə dolu sətrdən ibarət olacaq və yuxarıda təsvir olunan *** və ya ****** işarələri və ya boş sətrlə bitəcək. - Heç bir məqalə sətirdən uzun olmayacaq; heç bir sətir simvoldan uzun olmayacaq. Heç bir söz simvoldan uzun olmayacaq. - Girişdə yalnız boşluq simvolları (ASCII ) və sətr sonu işarələri istifadə olunacaq.
Hər bir sənəd üçün xülasəni çap edin, sonra isə ====== (altı bərabərlik işarəsindən ibarət sətr) çap edin.
Hər xülasə, yuxarıda təsvir olunduğu kimi seçilmiş mövzu cümlələrinin girişdə yerləşdiyi ardıcıllıqla formalaşacaq. Hər bir cümlə girişdə göründüyü kimi dəqiq çap edilməlidir və sətirdən sonra fasilə (yeni sətr) qoyulmalıdır.
Nümunə Giriş
"' Hello world! Everyone should greet the entire world in a friendlymanner. Wouldn’t that make the world a more friendly place?This is not a sentence***From: The Wright Brothers’ Aeroplane.By Orville and Wilbur WrightIn the field of aviation there were two schools. The first,represented by such men as Professor Langley and Sir Hiram Maxim,gave chief attention to power flight; the second, represented byLilienthal, Mouillard, and Chanute, to soaring flight. Our sympathieswere with the latter school, partly from impatience at the wastefulextravagance of mounting delicate and costly machinery on wingswhich no one knew how to manage, and partly, no doubt, from theextraordinary charm and enthusiasm with which the apostles of soaringflight set forth the beauties of sailing through the air on fixedwings, deriving the motive power from the wind itself.We began our active experiments at the close of this period, in October,1900, at Kitty Hawk, North Carolina. Our machine was designed to beflown as a kite, with a man on board, in winds from 15 to 20 miles anhour. But, upon trial, it was found that much stronger winds wererequired to lift it. Suitable winds not being plentiful, we found itnecessary, in order to test the new balancing system, to fly the machineas a kite without a man on board, operating the levers through cordsfrom the ground. This did not give the practice anticipated, but itinspired confidence in the new system of balance.In the summer of 1901 we became personally acquainted with Mr. Chanute.When he learned that we were interested in flying as a sport, and notwith any expectation of recovering the money we were expending on it, hegave us much encouragement. At our invitation, he spent several weekswith us at our camp at Kill Devil Hill, four miles south of Kitty Hawk,during our experiments of that and the two succeeding years. He alsowitnessed one flight of the power machine near Dayton, Ohio, in October,1904.****** "'
Nümunə Çıxış
"' Everyone should greet the entire world in a friendlymanner. ====== The first,represented by such men as Professor Langley and Sir Hiram Maxim,gave chief attention to power flight; the second, represented byLilienthal, Mouillard, and Chanute, to soaring flight. Our machine was designed to beflown as a kite, with a man on board, in winds from 15 to 20 miles anhour. When he learned that we were interested in flying as a sport, and notwith any expectation of recovering the money we were expending on it, hegave us much encouragement. ====== "'
Nümunə 1