Random sentence generation with n-grams
Brendan O'Connor and Michael Bieniosek
December 2002, Ling 138, Intro to Computational Linguistics (Martin Kay)
Writeup
Code
These were all generated by training on the Brown corpus of documents.
Examples
Small corpus
Bigrams
- The Cen-Tennial Gin Co& contracted to have quite cold.
- Richard Beesemyers, formerly raised sagging candidate to the Friday officially
forecast at the project.
- A hearing appeals.
- That bank handles most notable exceptions to buy time for reconsideration
Wednesday in decades, is the B& Coopers, to discuss international theme for the
violin away as the wages of the power plant near classic chemise.
- It could have been observing the 65 to back Tuesday.
- And fourth, there is a full report, Wagner said.
Trigrams
- In 1949 the Dixiecrats escaped unscathed after their 1948 rebellion against Harry
Truman, Henry Cabot Lodge, the King of Morocco, Clement Atlee and other
private-school facilities for teaching science, languages and mathematics.
- He was then subdued and placed in the case went to his election to pull it back
together.
- Generally, they go to Vero Beach on their future were taken Friday by delegates
to consider appointment of the Pittsburgh Pirates, and Casey Stengel, the former
Superior Court justices in the 11-year history of the biggest collections of Paul
Klees in the U&S& for first three months to come.
- Beaverton School District have been led to growth by merger.
4-grams
- The first witness, Moses Winston Mardis, 5835 Michigan av&, a real estate agent
who became interested as a philosophy major at the University without regard to
geographical distance or lack of apparent connection.
- The Revenue Service disallowed the claim, invoking a law provision that
generally bars deductions for expenses incurred in connection with President
Eisenhower's cabinet selections in 1953 and the unit system, which turns out a
complete ginning system, began operations in 1953 and the unit system, which
turns out a complete ginning system, began operations in 1953 and the unit
system, which turns out a complete ginning system, began operations in Dallas in
1928.
5-grams
- If the Orioles are to break their losing streak within the next two days, it will have
to be at the expense of lower-priced standard models and foreign cars.
- Mississippi's relations with the national Democratic party or see a movement
come from the loyalist ranks to completely bypass him as a party functionary.
Large corpus
Bigrams
- "Don't you get on the front of the bathroom"? Ernie hesitated to Father Feeney,
for me he said, "Come sit", he should bear the soul.
- And Bill Doolin and known magic might be as training? The previous night,
means by the initial cost increases, the official representative government in
address for manned bombers to gallop was Roman nose on a million of a couple
of the book of purpose we fail to a cowhand was heard.
Trigrams
- It wasn't just Japan, either, because the rain came more heavily, and men in an
involutorial fashion.
- These two were blacked out, as it did when Eisenhower appointed him
Ambassador to Moscow.
- On chemical grounds it should be remitted with your naked eye at night in South
Africa, beats it by taking the raw sewage into the Austrian branch of Multnomah
Bank, also was ordered by a public servant but not much to remove restrictions
that, it requires only written notice that he was glad the fat that extended beyond
himself, something which, consequently, he was counting on the cheek.
4-grams
- A Yankee sergeant gave the following description of his sweetheart: "My girl is
none of your business", she said, then turned and attacked Morgan who became
greatly outnumbered and had to fasten it on someone.
- When words can be used in almost any classroom today can be found amongst us
without a correct version of the welfare state in England still allows wild scope
for all kinds of problems for which she was moving, her method for keeping an
escort from departing too early was unique.
- But, again, we have no clocks and nobody cares enough to count days or to make
calendars and there's not much climate here, so none of us knew anything but filth
and poverty.
5-grams
- Nevertheless, it remained one of the great singers of our time but she is one of the
best-gaited pacers on the grounds.
- These are few and seemingly disjointed data, but they illustrate the important fact
that fundamental alterations in conditioned reactions occur in a variety of
expressions in your country denied not only the existence of this conflict but it
was elaborated even further with an incredible semantic dexterity.
- The queen afterward keeps incubating and guarding her eggs like a mother hen,
taking a sip from time to time in ratable proportions, on account of the crazy
tourists.
Even more examples!
These were generated via trigrams on the entire Brown corpus.
- Saturated fats can accommodate no more electronic switches have been enough time to get their initial experience in fact, wrote was: "It is a problem as he came to my surprise, into the oil class in their scientific training, he added.
- Flats have a moral choice; one which, should it fail, will not be Eugene's passion.
- The first, or double-step, type might also note a throaty rasp.
- When I went right on the number of removal mechanisms are often of European registration systems to the College Service of Jersey City (registered professional nurses with college background and varying experiences).
- They continued to be one of these discussions was to see why.
- The Transit Authority has recently studied the night wanderers to fire me- all because of a "hands off" nature due possibly to several reasons: (1) the kind of home sets were about as the fact that he had grabbed for her.
- As autumn starts its annual meeting at the other side with the nightclub's cooperation, the American public.
- Mark Arnold-Foster writes: "People are leaving humor and comedy five years following the Russian conquerors, the film version has little concerned himself with Carla.
- Action taken today is the standard broadcast (~AM) band, from 540 kc& to 1600 kc&.
- Now **f **f Shak& would procure us monei: which I beg you not say that the potters grew and the children's party.
- It was a thoroughly honest and public-spirited.
- The social security and cultural goods of the ship, the pilot's oaths became fewer.
- Her upper lip like a bit of a point to keep growing by 18 per cent in the past, any attempt to dishonor God and let John lead him along ever since she first went to him and began preparing an indictment.
- "Oh"? Rector said.
- By varying the formula, this curve may be roughtly defined as a "Prairie National Park".
- What was lacking was a division established by an "All People's State", and also to be adopted.
- Selena was the same time.
- NEW UNIFIL APPLICATION A new waterfront site for the Holy Scriptures".
- No drummers here, no pipers, and the repetition of <I, you, he, she>, et cetera may signal ambiguity or uncertainty.
- Fifty-seven returns could not be arrested and reversed but which may willingly or not, but I not them, their presence as baragining points in time the Hetman seemed excited was when half the characters in his chosen profession.
- This is a continuum, the network in Figure 3, and 4, which are invariant.
- I found the razor.
- Under the conditions for great creative incentive: economic security that she could sympathize with Mr& Hodges' figures was the morality of nuclear weapons, particularly to Communist infiltration of lymphocytes and plasma cells.
- POLAND _FRONTIERS._ When the chance came his way.
- Advertisers have discovered that the approaching car was struck by the 33-man Emory board at its most spectacular features are immediately evident.
- "For six years ago, Commodore", Rob said impassively.
- Bob Burnes, sports editor of the picture, and the space ~.
- But to the entire society, as they found McClellan and the latter shook hands and feet, but marked in the thyroid.
- It seemed to advance the purposes specified in the Student Center, along with the North Star? Ensign Vesole decided that they tend to stick to our bit, we are positive of her class needed.
- It celebrates the unknown architect who designed the temple at some sort of verbal slips, like the bomb that dropped on enemy territory, which is appointed to serve as norms for children.
- His trading goods at better understanding of the pleural blood supply existed between animals, nowhere in the sexual element in anti-submarine warfare employment, extended to include all eligible productive facilities inventory of the steps.
- Now let us examine the scene, there was an outstanding exhibit each year.
- Far from it; I thought had occurred we were hopelessly in love the brethren.
- "Your superiors will certainly beat you for a speck of land and the happiness are even uglier than Mr& Wright".
- Brassnose turned a smile or a symbolic form and its readers from pollution by that help himself represent even better than it can fly.
- He went to the natural mathematical properties of crystals are used instead.
- At one side of ~D and one finds concentrated in orbital streams which intersect the Earth's surface, has been considerable concern among the free electron and atomic and ionic radii.
- Contrary to popular opinion, "a la mode" doesn't mean that rock-and-roll combo? Even in its engineers' frantic attempts to supply a complete picture of the "veil".
- As Hartweger accepted his platinum watch and a canted headboard.
- As Hartweger accepted his silver bowl, he said, getting a dime ready to participate actively in supplementing the efforts of his brother-in-law.
- Also, she lived in New England as it twisted sharply on the shores of the regression line of action for handling these forms left no memory.
- As she goes, she herself was preparing to pacify the aborigines never bathed.