Word prediction What are likely completions of the following sentences? –“Oh, that must be a syntax …” –“I have to go to the …” –“I’d also like a Coke.

Slides:



Advertisements
Similar presentations
Virtual Field Trip Australia Zoo Do you know enough about reptiles to work with the Crocodile Hunter? Complete the first two sections on the Reptiles sheet.
Advertisements

By Mrs. Miller’s 2nd Grade Class
Animals Grow and Change by Denise Carroll
Alligator and Frilled Lizard
ALLIGATOR KEVIN DAWIDCZYK.
Vertebrates Animals that have a backbone.
Animals with backbones
Chapter 5: Vertebrates.
Click an animal to find out more
P1 Reptiles Ch. 3 Section. 1.
Animal Life Cycles Identify the different stages that animals go through in a life cycle. Compare the life cycles of different kinds of animals.
What are Reptiles? Read each slide. Look at each picture. Answer each question.
Morphology & FSTs Shallow Processing Techniques for NLP Ling570 October 17, 2011.
LING 438/538 Computational Linguistics Sandiway Fong Lecture 18: 10/26.
Reptiles. Characteristics of a Reptile Vertebrate animals Lungs Scaly skin Amniotic- leathery, egg.
Ice Breaker Compare an amphibian and a fish
By: Blake Iddings & Maggie Bedillion.  There’s about 6500 known species of reptiles  Split into 3 different orders:  Turtles  Lizards and Snakes 
Amphibians/ reptiles Coulter.
Utah Core Science  In this lesson we will learn…  About Amphibians  About Reptiles  Their differences  Their similarities.
Vertebrates Chap. 3, lesson 2, pages 51-65
SI485i : NLP Set 3 Language Models Fall 2012 : Chambers.
Access Prior Knowledge Lesson 2: How do we classify vertebrates? Opening Activity ·Open Science textbook to page 10. ·Open Science folder to review vocabulary.
Section 4 Reptiles. Reptiles A reptile is an ectothermic vertebrate that has lungs and scaly skin. Examples: snakes, lizards, turtles, alligators, and.
6. N-GRAMs 부산대학교 인공지능연구실 최성자. 2 Word prediction “I’d like to make a collect …” Call, telephone, or person-to-person -Spelling error detection -Augmentative.
Lesson 2 Animals With Backbones
Chapter 3 Section 4.
Classification of Vertebrate Animals
Vertebrates A Describe the similarities and differences that characterize diverse living things; describe how the structures of living things help.
1.What is a Reptile? 1. What do turtles, alligators, crocodiles, snakes, and lizards have in common? 2 They are all reptiles.
CHAPTER 18 SECTION 2 NOTES AMPHIBIANS: SPEND PART OF THEIR LIVES IN WATER AND PART ON LAND EX…..FROGS, TOADS, NEWTS, SALAMANDERS.
Bellwork 1: Briefly write about a real scientific observation you made over the break. I will only call on 3 of you to share.
Ectotherms Regulation Many ectotherms hide from predators at night because they are sluggish from lack of heat energy Others prey at night (mostly in hot.
Reptiles Ms. Bridgeland. Introduction to Reptiles.
HAVE BACKBONES AND SKULL BONES Vertebrates B. Cole EDUC 730: Lesson Plan.
Reptiles Fill in the blanks on your worksheet as we read through the powerpoint.
Reptiles Ms. Bridgeland. Introduction to Reptiles.
VERTEBRATES Mrs. Leary. Shared Characteristics Backbones with spinal cord Backbones with spinal cord Muscular system Muscular system Central nervous system.
What Animals Need: Food Water Shelter Air Animals that live on land, such as giraffes, have lungs that get oxygen from the air. Insects get oxygen from.
Class: Reptilia. { Amniotes Who are they? Reptiles Birds Mammals Keratin is a protein that binds to a lipid(fat) to form a water repellent layer that.
All About Animals.
Sunken Lesson Animals with Backbones Fish Live in water Most have scales and fins Use their fins to move through the water Use gills to breathe Live.
Animals Chapter 3 Section 4 Reptiles. Protection from Drying Out ► A reptile is an ectothermic vertebrate that has lungs & scaly skin ► Can spend entire.
Alligator DARYN WHITE.
Sea Turtles By Laila Swafford. What is the Animal Group? They are in the reptiles group. They have scaly skin. They need shade and sun.
Reptiles Ch
Unit A: Chapter 2 Vocabulary Types of Animals Mrs. Tweedie September 2006.
Vertebrates A Describe the similarities and differences that characterize diverse living things; describe how the structures of living things help.
All About Animals 6 Different Animal Groups n birds n fish n insects n mammals n amphibians n reptiles.
Animals are divided into invertebrates and vertebrates. The invertebrates are the animals that do not posses a backbone or vertebral column while the vertebrates.
Science Vertebrates Animals with backbones. Science Vertebrates Animals with backbones.
Vertebrate and invertebrates
Vertebrates are animals with a backbone. Only 5-10% of animals are vertebrates on Earth, yet we are most familiar with them! Vertebrates have muscles,
Classification of vertebrates. Q What are vertebrates? Give examples A: Animals with backbones are called vertebrates. Ex snake, dog, duck, horse and.
(not mammals).  Body temperature: -Reptiles use sun and shade to keep their body temperature regular. If they get to cold they will become tired.  Skin:
Reptiles What is a reptile? The major groups of reptiles are alligators and crocodiles, turtles, lizards, and snakes. All reptiles are cold-blooded,
Reptiles SWBAT list the four groups of living reptiles; describe the body, special senses, and eating habits of snakes; describe the type of environment.
Amphibians. Characteristics As adults: – 2 pairs of legs – Lay eggs in water – Obtain oxygen through skin – Smooth, moist skin – Many have lungs Frogs,
Characteristics of Vertebrates. Group 1: FISH Facts: – Fish are the largest class of vertebrates – There are three classes of fish: Jawless- boneless.
AIM: How are marine reptiles adapted for survival?
Tuesday 4/19/16 Learning Goal: Describe the characteristics and adaptations of reptiles. Warm up: What are some examples of reptiles?
Animals Grow and Change
Vertebrates - C - Notes EQ: What do most vertebrates have in common? Vertebrates – Physical Characteristics They have backbones, an internal skeleton (endoskeleton),
REPTILES. CROCODILE SNAKE LIZARD CHAMELEON TORTOISETURTLE.
Reptiles 8th Grade Biology.
Vertebrates or Invertebrates
Sunken Lesson Animals with Backbones
Another way scientist sort large groups of organisms is to classify them into groups with and without backbones. A _______is a row of connected bones down.
Taxonomy Kingdom, Phylum, Class, Order, Family, Genus, Species
Animal Types Reptiles.
In the past there were more reptiles than there are today, and during the time of the dinosaurs many were huge and were very successful creatures. Now.
Presentation transcript:

Word prediction What are likely completions of the following sentences? –“Oh, that must be a syntax …” –“I have to go to the …” –“I’d also like a Coke and some …” Word prediction (guessing what might come next) has many applications: –speech recognition –handwriting recognition –augmentative communication systems –spelling error detection/correction

N-grams A simple model for word prediction is the n-gram model. An n-gram model “uses the previous N-1 words to predict the next one”.

Using corpora in word prediction A corpus is a collection of text (or speech). In order to do word prediction using n- grams we must compute conditional word probabilities. Conditional word probabilities are computed from their occurrences in a corpus or several corpora.

Counting types and tokens in corpora Prior to computing conditional probabilities, counts are needed. Most counts are based on word form (i.e. cat and cats are two distinct word forms). We distinguish types from tokens: –“We use types to mean the number of distinct words in a corpus” –We use “tokens to mean the total number of running words.” [pg. 195]

Word (unigram) probabilities Simple model: all words have equal probability. For example, assuming a lexicon of 100,000 words we have P(the)= , P(rabbit) = Consider the difference between “the” and “rabbit” in the following contexts: –I bought … –I read …

Unigrams Somewhat better model: consider frequency of occurrence. For example, we might have P(the) = 0.07, P(rabbit)= Consider difference between –Anyhow, … –Just then, the white …

Bigrams Bigrams consider two-word sequences. –P(rabbit | white) = …high… –P(the | white) = …low… –P(rabbit | anyhow) = …low… –P(the | anyhow) = …high… The probability of occurrence of a word is dependent on the context of occurrence: the probability is conditional.

Probabilities We want to know the probability of a word given a preceding context. We can compute the probability of a word sequence: P(w 1 w 2 …w n ) How do we compute the probability that w n occurs after the sequence (w 1 w 2 …w n-1 )? P(w 1 w 2 …w n ) = P(w 1 )P(w 2 |w 1 )P(w 3 |w 1 w 2 ) … P(w n |w 1 w 2 …w n-1 ) How do we find probabilities like P(w n |w 1 w 2 …w n-1 )? We approximate! In a bigram model we approximate using the previous one word; approximate by P(w n |w n-1 ).

Computing conditional probabilities How do we compute P(w n |w n-1 )? P(w n |w n-1 ) = C(w n-1 w n ) /  w C(w n-1 w) Since the sum of all bigram counts that start with w n-1 must be the same as the unigram count for w n-1, we can simplify: P(w n |w n-1 ) = C(w n-1 w n ) / C(w n-1 )

Exercise Consider the following text: Calculate word counts, bigram counts, and bigram probabilities.

The world of reptiles is an interesting one! Some reptiles are adored, or loved, by people while other reptiles are feared by people! Turtles, lizards, and snakes are often kept as pets, but alligators, crocodiles, and some very large iguanas are best left in the wild! Reptiles are vertebrates and have some things in common. They have dry, scaly skin. Reptiles are cold-blooded, which means that their body temperature stays about the same as the temperature of their surroundings. As the temperature outdoors changes, the reptile's body temperature changes, too! Reptiles live on the land and in the water, but even the reptiles that live in the water most of the time breathe with lungs. Sometimes lazy alligators and crocodiles will lie in the water with only their nostrils, or noses, sticking out. Turtles stick their heads out of the water, too, to breathe in oxygen. All reptiles hatch from eggs. Some eggs are laid in a nest by the mother. All turtles, crocodiles, and some lizards and snakes lay eggs with shells. Other snake and lizard mothers, however, protect the eggs inside their bodies until they hatch. These babies are born alive! A mother alligator will carry her babies to the water, but not many reptiles care for their eggs or their babies. So, do you love snakes or are you afraid of them?