text: "use strict"
  
  var express = require('express');
  var app = express();
  var similarity = require('sentence-similarity');
  var similarityScore = require('similarity-score');
  const tf = require('@tensorflow/tfjs');
  const use = require('@tensorflow-models/universal-sentence-encoder');
  
  const dataset = ['The young boys are playing outdoors and the man is smiling nearby', 'A brown dog is attacking another animal in front of the tall man in pants', 'A person in a black jacket is doing tricks on a motorbike', 'A skilled person is riding a bicycle on one wheel', 'A man with a jersey is dunking the ball at a basketball game', 'The game of basketball consists of a ball being dunked by a man with a jersey', 'A man who is playing dunks the basketball into the net and a crowd is in background', 'Two people are kickboxing and spectators are watching', 'Two young women are sparring in a kickboxing fight', 'Kids in red shirts are playing in the leaves', 'Three boys are jumping in the leaves', 'Two children are lying in the snow and are drawing angels', 'Two people wearing snowsuits are on the ground making snow angels', 'A little girl is looking at a woman in costume', 'People wearing costumes are gathering in a forest and are looking in the same direction', 'A lone biker is jumping in the air', 'A man is jumping into an empty swimming pool', 'Four kids are doing backbends in the park', 'Four girls are doing backbends and playing in the garden', 'A man who is playing is running with the ball in his hands', 'Two groups of people are playing football', 'Two teams are competing in a football match', 'Five children are standing in front of a wooden hut', 'Five kids are standing close together and one kid has a gun', 'An old man is sitting in a field', 'The current is being ridden by a group of friends in a raft', 'This group of people is practicing water safety and wearing preservers', 'A deer is jumping over a fence', 'A wild deer is jumping a fence', 'People are walking outside a building that has many murals on it', 'Several people are in front of a building which is covered by colors', 'People are walking outside the building that has several murals on it', 'A boy is hitting a baseball', 'A family is watching a little boy who is hitting a baseball', 'A family is watching a boy who is hitting a baseball', 'A large group of Asian people is eating at a restaurant', 'Various people are eating at red tables in a crowded restaurant with purple lights', 'A motorcycle rider is standing up on the seat of a white motorcycle', 'Someone is on a black and white motorcycle and is standing on the seat', 'A motorcyclist is riding a motorbike dangerously along a roadway', 'A man with a helmet painted red is riding a blue motorcycle down the road', 'A motorcyclist with a red helmet is riding a blue motorcycle down the road', 'A dog is catching a stick in the air and another is watching', 'Two dogs are playing by a tree', 'A girl in white is dancing', 'The blond girl is dancing in front of the sound equipment', 'The children of a family are patiently playing and waiting', 'Three Asian kids are dancing and a serious man is looking', 'A woman is wearing an Egyptian hat on her head', 'A hiker is on top of the mountain and is doing a joyful dance', 'A man is on a rock high above some trees and is standing in an uncomfortable position', 'A cowgirl is riding a brown horse and is cornering a barrel', 'The brown horse is very near a red barrel at the rodeo', 'A boy is standing in the cold water', 'A skilled man is playing a guitar on stage', 'A person has blonde and flyaway hair and is playing a guitar', 'Two young girls are sitting on the ground', 'A nude lady is walking in front of many people in body paint', 'A young, topless woman is covered in paint', 'A nude lady is walking in front of a crowd in body paint', 'A group of people is near the ocean', 'A group of children in uniforms is standing at a gate and one is kissing the mother', 'A man is in a parking lot and is playing tennis against a large wall', 'A man is pointing at a silver sedan', 'A group of people is on a beach', 'A man, a woman and two girls are walking on the beach', 'A man, a woman and two girls are sitting on the beach', 'A schoolgirl with a black bag is on a crowded train', 'An Asian woman in a crowd is carrying a black bag', 'A dog is chasing another and is holding a stick in its mouth', 'Two dogs are running and carrying a toy in their mouths', 'A dirty soccer ball is rolling into a goal net', 'A person who plays soccer is kicking a ball into the goal', 'A man is resting on a chair and rubbing his eyes', 'A man with tattoos is lounging on a couch and holding a pencil', 'A white and tan dog is running through the tall and green grass', 'A man with paint covered clothes is sitting outside in a busy area writing something', 'Some people are walking', 'A group of scouts are hiking through the grass', 'A group of explorers are walking through the grass', 'Two men are taking a break from a trip on a snowy road', 'Two men are holding bikes and standing on the side of a road covered of snow', 'Two men are holding fishing poles and fishing tackle', 'Two men are standing near the water and are holding fishing poles', 'The helmeted girl is perching on a bike', 'A blonds girl is surfing', 'A lady is surfing and riding a wave', 'Two children and an adult are standing next to a tree limb', 'Two children are hanging on a large branch', 'A man is performing stunts on a green bicycle', 'A man is performing a trick on a green bicycle', 'A boy is holding a squirt gun', 'A child with a gun that sprays water is laughing and getting hit by other boys', 'A laughing child is holding a water gun and getting sprayed with water', 'Two brown dogs are fighting over a red ball and are playing in the grass', 'The black and white dog is running and a person stands behind it', 'A little dog is sprinting and the person who owns it is trying to catch it', 'A man is sitting comfortably at a table', 'A man wearing a dyed black shirt is sitting at the table and laughing', 'A woman who is wearing a pink boa is riding a bicycle down a bridge built for pedestrians', 'The woman wearing silver pants, pink bellbottoms and a pink scarf is happily riding a bike', 'A person, who is riding a bike, is wearing gear which is black', 'A black helmet is being worn by a man who is pushing a bicycle', 'The man in a grey t-shirt is sitting on a rock in front of the waterfall', 'One woman is sitting and looks at the waterfall', 'A dog, which is brown, and a black one are racing in the grass', 'A dark black dog and a light brown dog are playing in the yard in the back', 'A dog that has a brown and white coat is trotting through shallow water', 'A white and brown dog is walking through the water with difficulty', 'A group of boys are playing with a ball in front of a large door made of wood', 'The children are playing in front of a door, which is very large', 'A bunch of boys are playing with a ball in front of a large door made of wood', 'A woman is taking off a cloak, which is very large, and revealing an extravagant dress', 'A black, red, white and pink dress is being worn by a woman', 'The teenage girl is wearing beads that are red', 'A young lady with light brown hair is wearing a red necklace, a sweatshirt and earrings and is smiling', 'A boy is climbing up a wall artificially built for climbing and is attached to a rope', 'A fearful little boy is on a climbing wall', 'A dad is launching his daughter into a swimming pool', 'The man is tossing a kid into the swimming pool that is near the ocean', 'One man is climbing the cliff with a rope', 'A person is climbing a rock with a rope, which is pink', 'A rock is being climbed by a person with a rope, which is pink', 'The young boy is climbing the wall made of rock', 'A young child is climbing a rock climbing wall which is indoors', 'One man is doing a trick with a bicycle in midair', 'A cyclist is fearlessly performing a trick in the air', 'One man is doing a bicycle trick in midair', 'A dog, which is black, and a white one are staring at each other in the street', 'Two dogs of different breeds are looking angrily at each other across a street', 'A dog which is furry and black is in a backyard and is carrying a basket in its mouth.', 'Two persons of large size are sitting on a park bench and they have a bottle of soda between them', 'Two large park benches have a person sitting and a bottle of soda between them', 'A man and a woman are sitting comfortably on the bench', 'One man is leading the race', 'A few men in a competition are running outside', 'The subject is being studied by a man with a camera', 'The man with the dyed purple hat is operating a camera that makes videos', 'A man is playing an electric guitar', 'A man is playing a guitar', 'A man is strumming a guitar', 'Three boys in karate uniform are sparring', 'Three men are practicing karate in a field', 'Some women are holding each other in a circle and dancing', 'Two men are playing table tennis', 'A woman is cutting broccoli', 'A white horse is standing', 'A woman is cutting a white onion', 'Mimes are performing on a small stage', 'The men are acting on a stage', 'A man is carrying a tree', 'A man is picking up a tree', 'A tree is being picked up by a man', 'A man is passionately playing the guitar', 'A trumpet is being played by a person', 'A person is stopping playing a trumpet', 'The badger is burrowing a hole', 'A badger, which is shrewd, is digging the earth', 'A hole is being burrowed by the badger', 'A badger is shrewdly digging the earth', 'Some liquid is being poured into a pan by a man', 'The chef is carefully pouring oil in the pan', 'The chef is carefully pouring some oil into a pan', 'The man is typing on a machine used for stenography', 'The man is cautiously operating a stenograph', 'The man is operating a stenograph', 'A snake is being fed a mouse by a man', 'The man is carefully feeding a mouse to the snake', 'The man is cautiously feeding a mouse to the snake', 'A guy is cheerfully playing with the footbag', 'There is a guy cheerfully playing with a footbag', 'The man is austerely playing a piano', 'A guy is cheerfully playing with a footbag', 'A man is mixing a few ingredients in a bowl', 'A woman is vigorously breaking two eggs in a bowl.', 'The girl is recklessly jumping onto a car', 'One young lady is jumping on the car', 'A girl is on a jumping car', 'One woman is slowly peeling a potato', 'A woman is peeling the potato', 'The potato is being peeled by a woman', 'A boat is sailing quietly over the water', 'A boat\'s sail is being reflected by the peaceful water', 'The guitar is being played by the man', 'The man is pouring oil on a few tomatoes', 'Some oil is being poured on the tomatoes by the man', 'The man is pouring some oil on the tomatoes', 'The milk is being drunk by a cat', 'A kitten is drinking fresh milk', 'A little cat is drinking fresh milk', 'A man is emptying a container made of plastic completely', 'A frog is being held carelessly by a man', 'A man is slicing an onion', 'An onion is being cut by a man', 'An onion is being sliced by a man', 'A man is recklessly riding a horse', 'The elephant is being ridden by the woman', 'Someone is feeding an animal', 'Somebody is playing the piano', 'A man is pushing the buttons of a microwave', 'One man is turning on the microwave', 'A flute is being played in a lovely way by a girl', 'One woman is practicing with a flute', 'A boy is happily playing the piano', 'A piano is being played by a man', 'A cheetah is breathlessly chasing its prey across a field', 'A cheetah is quickly running behind its prey.', 'A cheetah is chasing its prey across a field', 'A lion is pacing tiredly in a pen', 'A lion is slowly walking', 'The lion is pacing tiredly in the pen', 'A flute is being played by a man', 'A man is playing the guitar loudly', 'The person is dicing up a pepper which is orange', 'A cook is rapidly slicing some bell peppers', 'A girl is cutting the butter into two pieces', 'Some tofu is being sliced by one woman', 'The girl, who is little, is carefully combing her hair into a pony tail', 'One man is sitting steadily on the chair', 'A man is carelessly smearing butter on a slice of garlic flavored bread', 'A man is spreading butter on a piece of bread which is big', 'The parrot is amazingly talking into the microphone', 'The parrot is speaking', 'The parrot is talking into the microphone', 'The microphone in front of the talking parrot is being muted', 'A few kittens are eating', 'The food on the trays is being eaten by the kittens', 'The kittens are eating the food on the trays', 'A person is singing and playing a guitar', 'A man is passionately playing a guitar', 'Some animals are playing wildly in the water', 'The windows are being polished by a man', 'The man is driving a car carefully', 'One chimp is angrily kicking the target', 'The woman is pouring oil into a skillet', 'The baby is being put into a trash can by a woman', 'A person is putting meat into a skillet carelessly', 'One small child is greedily drinking water from the cup', 'The band is singing loudly', 'A woman is putting on makeup carefully', 'One person is playing the guitar and singing', 'The woman is happily playing a guitar, which is acoustic, and singing', 'The singer is playing the guitar at an acoustic concert for a woman', 'The woman is playing a guitar, which is acoustic, and singing', 'Some water is being casually drunk by a cat', 'One truck is quickly going down the hill', 'A young woman is playing the guitar', 'One man is intensely playing a guitar', 'The horse is being ridden by a man', 'A man is riding a motorbike', 'A magic trick is being performed by the magician', 'A man is dangerously throwing knives at the tree', 'The man is practicing the guitar', 'The guitar is being played by a girl', 'The boy is enthusiastically playing in the mud', 'The cat is playing with a device', 'Some meat is being cut into pieces by a woman', 'A lady is cutting up some meat precisely', 'A woman is cutting some meat into pieces', 'A lady is cutting up some meat', 'A boy in his teens is talking to a girl with an internet camera', 'One man is talking to a girl with an internet camera', 'Eggs are being strongly whisked in a bowl by a person', 'A woman is beating two eggs in a bowl and using a whisk made of wire', 'An interview is being granted by the man', 'A white car is being driven by the man', 'A cord is being climbed by a man', 'A man is mindlessly slicing the carrot with a machine', 'Some milk is being hungrily drunk by a cat', 'A baby is cheerfully playing with a dog', 'A small boy is playing with a dog', 'The man is slicing some potatoes', 'A man is taking pictures of a lake', 'The man is setting up the camera and taking sunset pictures at the beach', 'A woman is using a machine made for sewing', 'A woman is sewing with a machine', 'A woman is using a sewing machine', 'An egg is being cracked into a bowl by a woman', 'The woman is cracking two eggs into a bowl made of glass', 'The woman is cracking two eggs into a glass bowl', 'A few men are cheerfully playing cricket', 'People are playing cricket', 'A few men are playing cricket', 'A man is putting garlic on some slices of bread', 'A man is sprinkling seasoning on several sliced and buttered loaves of bread', 'Two kids are playing in a swimming pool with a green colored crocodile float', 'An inflatable crocodile is being pushed by two kids in a pool', 'Two kids are playing in a swimming pool with a crocodile float that is green', 'The man is abruptly knocked off of a horse', 'The man is being knocked off of a horse', 'A woman is tapping her fingers nervously', 'A woman is tapping her fingers on a desk', 'A woman is tapping her fingers on a table', 'A dog is pushing a toddler into a rain puddle', 'The dog is knocking a boy into the water', 'A dog is pushing a toddler into a puddle of rain', 'A man is hungrily eating a bowl of cereal', 'Cereal is being eaten by the man', 'A man is eating a bowl of cereal', 'A man is playing the guitar', 'The man is playing the flute', 'The woman is adding sugar to the meat slowly', 'The woman is adding sugar to the meat', 'A dog is biting a can', 'A dog is opening a can of food', 'A cat is playing with a watermelon', 'The cat is playing passionately with a watermelon', 'One cat is playing with a watermelon', 'The boy is playing a guitar', 'A boy is playing a guitar', 'A woman is wakeboarding on a lake', 'The woman is waterskiing fearlessly', 'Someone is banging the lens of a camera against a nail', 'A camera is being hammered onto the nail by the man', 'A person is slicing an onion', 'One person is cutting an onion', 'A person is cutting an onion', 'A carrot is being sliced by a woman', 'The oriental lady is cutting a carrot into thin pieces', 'The oriental lady is cutting a carrot into pieces that are thin', 'A man is pouring a plate of shredded cheese into a pot of sauce', 'The woman is adding cheese to the sauce', 'A man is pouring a plate of cheese which is shredded into a pot of sauce', 'Some cameras are being burned by a person with a blow torch', 'The tall person is setting fire to the cameras', 'A person is burning some cameras with a blow torch', 'The man is playing an acoustic guitar', 'The man is playing a guitar which is acoustic', 'A person is cutting an onion into pieces', 'A person is slicing a carrot into pieces', 'The man is slicing the potato', 'The man is slicing a potato', 'Somebody is cutting a tomato', 'The lady is slicing a tomato', 'The woman is slicing a tomato', 'A man is preparing some dish', 'The woman is slicing an onion with a knife', 'Some runners are competing in a race', 'Runners are racing in a competition', 'The runners are racing impetuously around a track', 'The runners are racing around a track', 'A man is running down the road', 'One man is running down the road', 'The keyboard is being played with his nose by a man', 'A man at the keyboard is playing with his nose', 'The man is funnily playing the piano with his nose', 'The man is playing the piano with his nose', 'A baby rhino is following an adult rhino', 'A rhino, which is a youngling, is walking around a pen with its mother', 'A baby rhino is walking around a pen with its mother', 'A man is dangerously riding a motorcycle through a town', 'A man is riding a motorcycle through the town', 'A group of people is singing', 'Some people are singing', 'Some persons are singing', 'A man is playing a trumpet brightly', 'The man is playing a guitar', 'One man is dancing', 'A man is carefully climbing a rope', 'One panda is climbing', 'A woman is dancing beautifully in a cage', 'The woman is dancing', 'A woman is dancing in a cage', 'Four people are floating on a raft', 'People are riding and paddling a raft', 'A cat is eagerly eating corn on the cob', 'A cat is eating some corn', 'A cat is eating corn on the cob', 'Someone is slicing a tomato', 'The person is quickly slicing a vegetable', 'Someone is cutting a tomato', 'A little girl is playing a grand piano on stage', 'A girl, who is little, is playing the piano', 'A little girl is playing a piano, which is very big, on stage', 'Someone is strumming the guitar', 'The man is dancing frantically', 'Three women are dancing', 'A man is playing a flute made of bamboo', 'The man is playing a flute', 'A man is playing a bamboo flute', 'A person is absently cutting mushrooms with a knife', 'A person is slicing some mushrooms', 'A person is cutting mushrooms with a knife', 'A tiger is pacing around a cage', 'A tiger is walking outside a cage', 'A tiger is walking around with no aim', 'A tiger is aimlessly walking around', 'A monkey is brushing the dog', 'A bull dog is being brushed by the monkey', 'The monkey is brushing a bull dog', 'A woman is swiftly cutting an onion', 'The lady is dicing onions', 'The woman is dicing onions', 'A man is wearing a hard hat and dancing', 'A man with a hard hat is dancing', 'The man with a hard hat is dancing', 'A man is dancing with a worn hard hat', 'Two boys are playing a video game', 'Two boys on a couch are playing games on the TV', 'Two boys on a couch are playing video games', 'A woman is cutting a potato', 'The man is slicing vegetables', 'The lady is breaking an egg for the mixer', 'The lady is carefully slicing up the meat', 'Some ferrets are climbing down from a shelf', 'A few ferrets are climbing out of the cage', 'A man is getting into an automobile', 'A man is hurriedly getting into a car in a garage', 'A man is getting into a car in a garage', 'A person is cutting a capsicum into pieces', 'One person is slicing a clove of garlic into pieces', 'A man is performing with the guitar', 'The man is gracefully singing and playing the guitar', 'The man is singing and playing the guitar', 'The person is boiling noodles', 'Noodles are being boiled in water by a woman', 'A woman is boiling noodles in water', 'A karate practitioner is kicking at another man who is wearing protective boxing gloves', 'The man is clumsily kick boxing with a trainer', 'The man is kicking a boxing trainer', 'A woman, who is seated, is singing a song and playing the guitar', 'A woman on a boulder is lying on a blanket and reading a book', 'A man is playing an acoustic guitar', 'The woman is playing a guitar which is electric', 'The lady is breaking eggs that are raw into a bowl', 'The woman is cracking eggs into a bowl', 'The lady is breaking raw eggs into a bowl', 'A soccer player is scoring a goal', 'Some people who play soccer are kicking a soccer ball into the goal', 'A player of soccer is scoring a goal', 'Soccer players are kicking a soccer ball into the goal', 'A man and a woman are eating happily', 'A man and woman are talking', 'A person is pouring oil made with olives into a pot on the stove', 'A person is pouring oil for cooking into a pot', 'A person is pouring olive oil into a pot on the stove', 'A woman is walking the dog down the street', 'The woman is walking the dog', 'The woman is walking the dog down the street', 'A guinea pig is devouring a carrot', 'A guinea pig, which is small, is gnawing and eating a piece of carrot on the floor', 'A small guinea pig is gnawing and eating a piece of carrot on the floor', 'A man is confidently slicing a carrot with a knife', 'The woman is slicing an onion', 'The plane is landing', 'A cartoon airplane is landing', 'An animated airplane is landing', 'A woman is cooking an egg in a skillet', 'A woman is carefully pouring a mixture into a bowl and mixing it', 'The girl is using an eye pencil on her eyelid', 'The lady is penciling on eyeshadow', 'The girl is using a pencil for the eyes on her eyelid', 'A girl is practicing the piano', 'A girl, who is little, is playing a grand piano on stage', 'The woman is cooking eggs', 'The woman is lovingly cooking something', 'A woman is cooking eggs', 'Some cats are playing with each other', 'Two cats are playfully fighting each other', 'Two bikes are being ridden by two people', 'Two people are riding a motorcycle', 'Two people are stopping on a motorcycle', 'A man is riding a mechanical bull', 'The man is riding a mechanical bull', 'A woman is skillfully playing a flute', 'The woman is playing the flute', 'A woman is playing a flute', 'The man is lifting barbells', 'The man is lifting weights', 'A man is lifting barbells', 'A man is chopping down a tree with an axe', 'A tree is being cut by a man with an axe', 'A man is cutting a tree with an axe', 'A girl is applying makeup to her face', 'A lady is putting on makeup', 'A herd of deer is crossing the street', 'The herd of caribous is crossing a road quickly', 'A woman is slicing an onion', 'The woman is dicing a carrot', 'Two men are fighting in a cattle pen', 'Two men are fighting in a cow pasture', 'Two men are fighting in a pasture for cows', 'A woman is putting cosmetics on her eyelid', 'A woman is penciling on eyeshadow', 'The woman is penciling on eyeshadow', 'A man is eating a banana', 'The man is absently eating a banana by a tree', 'The man is eating a banana by a tree', 'Three people are walking across a rope and steel bridge over a river', 'Four people are walking on a bridge over a river', 'Several people are crossing in line a bridge', 'A young boy is jumping into water', 'A boy is wearing a yellow jacket and is jumping down from a rock', 'The young child is riding a three wheeled scooter down the sidewalk', 'A toddler is riding a plastic scooter toy', 'Three men are sitting on a mountainside and looking at the view with a pair of binoculars', 'A girl is skipping rope on a sidewalk', 'A young girl is jumping rope on a sidewalk near a parking garage', 'A girl is jumping rope on a sidewalk near a parking garage', 'People are clustered around a bonfire at night', 'Several people are sitting around a fire at night', 'People are sitting around a bonfire at night', 'A brown dog is standing in a lake', 'A dog is swimming in a body of water', 'Two dogs are running through the park', 'Two dogs are running quickly through the park', 'Two animals are running through the park', 'Two dogs are running quickly through a park', 'A boy is speeding down a steep slide', 'A boy is wearing all black and is sliding down a blow up yellow slide', 'A man with a white moustache is standing on a balcony and is looking at the road below', 'A small white dog is running in a lawn', 'A brown and white dog with a brown and black bandanna is quickly running', 'A black dog on a leash is walking in the water', 'A red sled is being held by a little girl in a green coat and a boy walking in the snow', 'A child is wearing a coat and is carrying a red sled behind a child in a green and black coat', 'A toddler is sitting in a seat', 'A woman is wearing a long black coat and a brown hat and is walking past a park with a lot of blooming trees', 'A woman is walking in a city street', 'Two people are riding motorbikes', 'Dirt bikers are riding on a trail', 'A man is leaning against a pole and is surrounded by people', 'A middle eastern man is standing with the back against a lamp post near to other people', 'A middle eastern man is standing against a lamp post near to other people', 'A couple is looking at a street guide', 'A man and a woman are sitting in front of an art gallery and are looking at a map', 'A man and a woman are standing in front of an art gallery and are looking at a map', 'A little dog is running on the beach', 'One boy in orange shorts is standing on a rock cliff over the water and the other boy in black shorts is diving into the water', 'Two males are standing on a cliff edge and one is jumping into the sea', 'One boy in orange shorts is standing on a rock cliff over the water and the other boy in black shorts is jumping of it into the water', 'A boy is playing a game with wooden blocks', 'A boy in blue shirt is looking at his hand near a stack of blocks on table', 'A woman in a bikini is pulling a dog on a leash at the seashore', 'A woman is standing at the beach with a dog on a leash', 'A small group of people are standing and two are sitting on the couch', 'A group of five young adults are lounging in the room', 'The dog has its head inside a red and green gift bag', 'A red and brown dog is digging its nose inside the holiday gift bag', 'The man is biking in the snow and wearing a red jacket', 'A cyclist is biking in a snowy forest in the dark', 'A girl with a bikini is playing in the dunes', 'A young girl in a bikini is jumping on the beach', 'A boy is wearing a hat and is walking in the wet sand', 'A white hat is being worn by a boy which is running on the beach', 'A cardboard box is being touched by a man in a black hat', 'A man in a black hat is reaching for a box', 'A blond kid is going down a slide and throwing up his arms', 'A young girl with a heart tank top is raising her hands as she is playing on a slide', 'Two dogs are playing on the beach', 'A brown dog is running after a black dog on a rocky shore', 'Two dogs are playing on a rocky beach', 'A black dog is approaching a golden dog on pebbly beach', 'A large white dog is jumping in the air over an area covered by snow', 'A large white dog is jumping up in the snow', 'A large white dog is jumping in the air over a snowy area', 'Two young boys are wearing hats and sticking their colored tongues out', 'A pair of kids are sticking out blue and green colored tongues', 'A dog is standing on the side of a mountain', 'A white dog is standing on a hill covered by grass', 'Two children are rolling in dirty water', 'Two boys are laying in the ocean close to the beach', 'A black and brown dog is eyeing a fly', 'A brown and black dog is looking upwards', 'A large man is sitting in a military accessories shop', 'A veteran is showing different things from a war to some people', 'A grey dog is bouncing a soccer ball on its head in a grass field', 'A dog with a blue collar is playing with the ball in the garden', 'A young black child is standing on the edge of a body of water near some buckets', 'A boy next to some buckets of rags is holding something', 'Two children are playing soccer in the park', 'Two little boys are playing outside with a soccer ball on the green grass', 'The woman is wearing a colorful shirt and a lot of jewelry', 'A young woman with Indian clothing and henna on her hand is going through paperwork', 'A man is standing in the middle of a gym and is wearing a jersey', 'A man in a jersey which is black is standing in a gym', 'A man in a black jersey is standing in a gym', 'The snowboarder is jumping off the snow', 'The snowboarder is jumping off a snow covered hill', 'The snowboarder is jumping off a snowy hill', 'A lady is wearing a black dress and is carrying a white cross', 'A woman in a black dress is pulling a cart and is standing in front of two men who are seated on a park bench', 'A boy in a swimsuit is sitting on top of a circular fountain', 'The boy is standing next to the opening of a fountain', 'A brown and white animal is jumping on the sidewalk', 'A small brown and white dog is running on the sidewalk', 'The person is hiking', 'A distant person with a blue backpack is hiking in rocky area', 'A distant person with a blue backpack is hiking area full of rocks', 'A ball is being chased by a yellow dog', 'A dog is turning on the grass and pursuing a flying tennis ball', 'A woman in blue jeans is standing in front of a group of children beside a house made of stone', 'A lady is standing on the street and is surrounded by school children', 'A girl in a strange outfit is riding the bike', 'A woman is wearing paint and costume pieces and is riding a bike on a busy street', 'A woman is wearing paint and costume pieces and is riding a bike on a empty street', 'A man with no shirt is jumping over a log', 'The black dog is carrying a blue and white ball in its mouth', 'A dog is running with a volleyball', 'A girl in a band is playing the flute', 'A girl in a uniform is playing the flute with a marching band', 'A girl in a uniform is playing the flute with a band', 'A man is standing at the wheel of a classic American car that has its door and trunk open', 'The man in blue is posing for a picture next to a vehicle', 'Two people are sitting on a white bench', 'The woman is sitting near a flower bed and is overlooking a tunnel', 'A man is wearing a clear plastic cap and a mask', 'A man by a brick wall is wearing a mask around his mouth and a hair net', 'Two dogs are in a kennel on their hind legs and are facing one another', 'A black dog and a yellow dog are playing with each other', 'Two dogs and two people are walking in the woods', 'Two women with dogs are walking on a forest path', 'Two girl with dogs are walking on a forest path', 'A man is snowboarding down a railing in the snow', 'A man is skiing down a hill and over a red obstacle', 'Two men are taking a break from construction', 'Two construction workers are sitting up on the side of a palace', 'A man in a red shirt is doing a trick with the skateboard', 'The skateboarder is jumping in the air', 'A snowboarder is grinding down a long concrete rail', 'A person is doing acrobatics on a snowboard', 'Three friends are making faces for the camera', 'Two men and a girl in front of a wood panel wall are posing with funny faces', 'Four people are walking along a city sidewalk and the one in the green hat is phoning someone', 'A group of people is walking down the street and a person in a green hat is on the phone', 'Four people are walking along a city sidewalk and the one in the green hat is talking on a cell phone', 'A man is standing in the snow at the edge of a mountain', 'A man is standing at dusk on an almost pristine, snowy road, that is lit only by headlights', 'Three women are sitting together near woven walls', 'Three women are resting in a village', 'A surfer is surfing a big wave', 'A person with a red hooded jacket and a black backpack is walking near a rocky wall', 'A man in a red jacket and khaki pants is walking through an American state', 'The players is maneuvering for the soccer ball', 'A man in green is hitting a soccer ball and a man in purple and white is falling down', 'A kid is splashing in the ocean', 'Two children are playing in the surf', 'A man is wearing a purple shirt and black leather chaps and is posing for the camera', 'The man dressed in chaps made of leather and a purple shirt is standing in front of some onlookers', 'Two dogs are running and trying to catch a soccer ball', 'Two dogs on the grass are playing with a plastic toy', 'Two people dressed in green and red costumes are outside on the sidewalk', 'Men in costumes are walking around in the street', 'A dog is in an area full of sand, with the sand that is being stirred up into the air and several plants are in the background', 'A dog is in the sand that is blowing in the air', 'A dog is in the sand that is blowing in the wind', 'The black and white dog is running outdoors', 'The black and white dog is running in a green yard', 'The black and white dog is running in a field', 'A couple standing on the curb', 'A woman wearing a blue shirt and high heels is standing on the sidewalk next to a man', 'The dog is jumping in the shade of some trees', 'A dog is jumping high into the air in the country', 'A man on a green bike is performing tricks on a dirt ramp', 'A stuntman on a bike is in the air near a body of water', 'A young boy is sitting in a bathing suit and waiting for the next race', 'A young swimmer is sitting in a bathing suit and waiting for the next race', 'A black dog and a white dog are wrestling on the floor', 'A black dog and a tan dog are fighting', 'A black dog and a white dog are wrestling on the ground', 'A cluster of four brown dogs are playing in a field of brown grass', 'Four dogs are playing in a area covered by grass', 'A group of four brown dogs are playing in a field of brown grass', 'The dog is having a nap in the park', 'A brown puppy is gnawing a metallic post that is stuck in the ground', 'A brown puppy is gnawing a wooden post that is stuck into the ground', 'A woman is petting a dog near a stone trail', 'Two men are walking through a river', 'A white car and a yellow car are racing down the track', 'Two race cars are on a road in front of a grassy parking area', 'The rider dressed in orange is driving a motorcycle on one wheel', 'A man on a yellow sport bike is doing a wheelie and a friend on a black bike is catching up', 'Tambourines are being played by a group of children', 'A group of children in a church basement is playing maracas and tambourines', 'A group of children in a building\'s basement is playing maracas and tambourines', 'A group of children in a church basement is playing guitars and tambourines', 'A dog is running through the white snow', 'A brown dog is running in the snow', 'The brown dog is running in the snow', 'A black dog is running in the snow', 'An elderly man is sitting on a bench', 'An elderly woman is sitting on a bench and is wearing a gray jacket and black pants', 'An elder man is sitting on a bench and is wearing a gray jacket and black pants', 'A dog is fetching a piece of wood out of very clear water', 'A small black and white dog is carrying a stick and is swimming', 'The woman is holding the paintbrush next to the artist\'s easel', 'The girl in a blue coverall is painting', 'A golden retriever is running', 'A yellow dog is running down a sandy path', 'A black and white dog is jumping for a ball', 'A dog is standing on one leg and is waiting for a soccer ball', 'Two men are seated on a camel and another camel is in the foreground', 'People are riding two camels at the beach', 'A man is wearing a blue shirt and walking barefoot on a tennis court', 'A barefoot man in pajamas is looking toward the stars and is walking on the tennis court', 'The man is standing in a lake near a waterfall', 'The man is standing in the water at the base of a waterfall', 'A man is standing in the water at the base of a waterfall', 'A brown and white dog is running through the river', 'A dog is emerging from a lake', 'A dog is running on the beach and chasing a ball', 'A shirtless man is leading a horse that is pulling a carriage', 'A shirtless man is escorting a horse that is pulling a carriage along a paved road', 'A shirtless man is escorting a horse that is pulling a carriage along a road', 'A shirtless man is escorting a horse that is pulling a carriage along a dirty road', 'The young girl is playing on the edge of a fountain and an older woman is watching her', 'A little girl and a woman wearing a yellow shirt are getting splashed by a city fountain', 'A woman in an orange shirt and clown makeup is standing in a park and others are looking on', 'The girl is wearing an orange shirt and a striped tie', 'A bicyclist is performing a trick over a heavily graphitized wall', 'A woman is showing a puppy to an infant', 'A woman is crouching down next to a dog and is smiling at a young girl sitting on the sidewalk', 'A black and white dog with a large branch is running in the field', 'A black and white dog is carrying a big stick on the green grass', 'A black and white dog with a large branch is running in the grass', 'A black and white dog is carrying a huge stick on the green grass', 'A boy wearing a striped shirt is running barefoot on the sandy hill', 'A boy is running on the beach', 'A kid wearing a striped shirt is running barefoot on the sandy hill', 'A motorcycle racer is riding a red and black bike', 'A woman is firing at target practice', 'A woman is wearing ear protection and is firing a gun at an indoor shooting range', 'The woman is wearing ear protection and is firing a gun at an indoor shooting range', 'A woman is wearing ear protection and is firing a gun at an outdoor shooting range', 'Two young boys are looking up at the camera and one is sticking out his tongue', 'The little boy is sticking his tongue out for the camera and another boy is looking on', 'A little boy is sticking his tongue out for the camera and another boy is looking on', 'The large dog is walking outside and is carrying a colorful toy in its mouth', 'A dog is running on concrete and is holding a blue ball', 'The kids are playing outdoors near a man with a smile', 'A brown dog is attacking another animal in front of the man in pants', 'A man in a black jacket is doing tricks on a motorbike', 'A person is riding the bicycle on one wheel', 'The ball is being dunked by a man with a jersey at a basketball game', 'The player is dunking the basketball into the net and a crowd is in background', 'Two people are fighting and spectators are watching', 'Two women are sparring in a kickboxing match', 'Children in red shirts are playing in the leaves', 'Three kids are jumping in the leaves', 'Two children are lying in the snow and are making snow angels', 'Two people in snowsuits are lying in the snow and making snow angels', 'A young girl is looking at a woman in costume', 'Masked people are looking in the same direction in a forest', 'A biker is jumping in the air, alone', 'A man is jumping into an empty pool', 'Four children are doing backbends in the park', 'Four girls are doing backbends and playing outdoors', 'A player is running with the ball', 'Football is being played by two competing teams', 'Five children are standing in front of a hut made of wood', 'Five kids are standing close together and one kid has a weapon', 'A man is sitting in a field', 'A group of friends are riding the current in a raft', 'Preservers are being worn by a group of people who are practicing water safety', 'A deer is jumping over the enclosure', 'A deer is jumping a fence', 'Several people are in front of a colorful building', 'A child is hitting a baseball', 'A group of people from Asia is eating at a restaurant', 'Various customers are eating in a crowded restaurant with purple lights', 'A motorcycle is riding standing up on the seat of the vehicle', 'A rider is on a black and white bike and is standing on the seat', 'A motorcyclist is riding a motorbike along a roadway', 'A dog is leaping high in the air and another is watching', 'Two dogs are playing by a plant', 'A girl is wearing white clothes and is dancing', 'The equipment in front of the blond dancing girl is sound', 'The children of a family are playing and waiting', 'Three Asian kids are dancing and a man is looking', 'A woman is wearing an Egyptian headdress', 'A hiker is on top of the mountain and is dancing', 'A man is on a rock high above some trees and is standing in a strange position', 'A cowgirl is riding a horse and corners a barrel', 'The brown horse is near a red barrel at the rodeo', 'A boy is standing in the water', 'A man is playing a guitar on stage', 'A guitarist has blonde and flyaway hair', 'Two girls are sitting on the ground', 'A topless girl is covered in paint', 'A crowd of people is near the water', 'A group of children wearing the same clothes is waiting at a gate and one is kissing the mother', 'A lone man is in a parking lot and is playing tennis against a large wall', 'A man is pointing at a car', 'A group of people is near the sea', 'Four people are walking on the beach', 'A girl with a black bag is on a crowded train', 'An Asian woman in in the midst of many people is carrying a black bag', 'A dog is chasing another and is holding a piece of wood in its mouth', 'Two dogs are running and carrying an object in their mouths', 'A soccer ball is rolling into a goal net', 'A soccer player is kicking a ball into the goal', 'A man is sitting on a chair and rubbing his eyes', 'A tattooed man is on a sofa and is holding a pencil', 'A white and tan dog is running through a field', 'A brown and white dog is running through the tall grass', 'A man is wearing clothes that are covered with paint and is sitting outside in a busy area writing something', 'People are walking', 'Two men are taking a break from a trip on a road covered by snow', 'Two men with bikes are on the side of a snowy road', 'Two men are holding fishing poles', 'Two men are standing near the water and are holding tools used for fishing', 'The girl with a helmet is perching on a bike', 'A blond girl is riding the waves', 'A woman is surfing', 'Three people are standing next to a tree limb', 'Two children are climbing a tree', 'A man is performing a trick on a bike', 'A child is holding a squirt gun', 'Two brown dogs are fighting over a red toy and are playing in the grass', 'The dog, which is black and white, is running and a person stands behind it', 'A little dog is sprinting and its owner is trying to catch it', 'A person is sitting comfortably at the table', 'A black shirt is being worn by a man who is sitting at the table and laughing', 'A woman who is wearing a pink scarf is riding a bike down a bridge built for pedestrians', 'The woman wearing silver pants, pink bellbottoms and a pink scarf is riding a bike', 'A biker is wearing gear which is black', 'One man is wearing a black helmet and pushing a bicycle', 'The man in a t-shirt dyed grey is sitting on a rock in front of a waterfall', 'A woman is sitting and looking at the waterfall', 'A dog, which is brown, and a black one are running in the grass', 'A dark black dog and a light brown dog are playing in the backyard', 'A dog that has a white and brown colored coat is trotting through shallow water.', 'A white and brown dog is pacing through the water with difficulty', 'The children are playing in front of a large door', 'A woman is taking off a cloak, which is very large, and revealing extravagant apparel', 'A dress, which is black, red, white and pink is being worn by a woman', 'A teenage girl is wearing beads that are red', 'A lady of young age, with light brown hair, is wearing a red necklace, a sweatshirt and earrings and is smiling', 'A boy is effortlessly climbing up a wall artificially built for climbing and is attached to a rope', 'A little boy, who looks fearful, is on a climbing wall.', 'A father is launching the daughter in a swimming pool', 'One man is tossing a kid into the swimming pool that is near the ocean', 'One man is climbing a cliff with a rope', 'One young boy is climbing a wall made of rock', 'A young kid is climbing a rock climbing wall which is indoors', 'The cyclist is performing a trick in the air', 'A dog, which is black, and another one, which is white, are staring at each other in the street', 'Two dogs of different breeds are looking at each other across a street', 'A dog which is furry and black is in a back yard and is carrying a basket in its mouth', 'Two large persons are sitting on a park bench and they have a bottle of soda between them', 'Two people are sitting comfortably on the bench', 'A man is leading the race', 'A few men in a competition are running outdoors', 'A man with a camera is studying the subject', 'The man in the purple hat is operating a camera that makes videos', 'A man is playing guitar', 'Three boys in karate costumes are fighting', 'Three men are practicing karate outdoors', 'A few women are holding each other and dancing together', 'Two men are playing ping pong', 'A woman is slicing vegetables', 'A horse is standing', 'A woman is cutting an onion', 'Mimes are performing on a stage', 'The men are performing on stage', 'A man is carrying a plant', 'A person is playing a trumpet', 'A man is pouring liquid into a pot', 'A man is typing on a machine used for stenography', 'One man is feeding a mouse to the snake', 'The man is playing a piano', 'The man isn\'t playing the piano', 'Some ingredients are being mixed in a bowl by a person', 'A woman is breaking two eggs in a bowl', 'The girl is recklessly jumping onto a vehicle', 'One girl is jumping on the car', 'One woman is peeling a potato', 'A boat is sailing peacefully over the water', 'The guitar is being played by a man', 'The man is a guitar player', 'One person pours oil on a few tomatoes', 'The cat is drinking some milk', 'A man is emptying a container made of plastic', 'A man is carelessly holding a frog', 'The onion is being cut by the man', 'A person is recklessly riding a horse', 'The woman is riding the elephant', 'Someone is giving food to an animal', 'The piano is being played by someone', 'The buttons of a microwave are being pushed by a man', 'One man is powering the microwave', 'A flute is being played by a girl', 'One woman is playing a flute', 'One boy is happily playing a piano', 'A piano is being played by a person', 'The cheetah is running quickly behind its prey', 'A lion is slowly moving around', 'The flute is being played by one man', 'The adult is playing the guitar loudly', 'An orange pepper is being diced up by a person', 'A cook is slicing some bell peppers', 'A girl is cutting butter into two pieces', 'Tofu is being sliced by a woman', 'The girl, who is little, is combing her hair into a pony tail.', 'One man is sitting on the chair', 'The man is carelessly smearing butter on a slice of garlic bread', 'A piece of bread, which is big, is having butter spread upon it by a man OR A piece of bread, which is big, is being spread with butter by a man', 'A parrot is speaking', 'Some kittens are eating', 'A person is singing and playing the guitar', 'One man is passionately playing the guitar', 'A few animals are playing in the water', 'The windows are being cleaned by a man', 'The man is driving a car', 'A chimp is angrily kicking a target', 'Oil is being poured into a skillet by the woman', 'A woman is putting the baby into a trash can', 'A person is putting meat into a skillet', 'One small child is drinking water from the cup', 'The band is singing', 'A woman is putting on some makeup carefully,', 'A person is playing a guitar and singing', 'Some water is being drunk by a cat', 'A truck is quickly going down a hill', 'A girl is playing the guitar', 'The man is intensely playing the guitar', 'A man is riding the horse', 'A man is riding the animal', 'A man is driving a motorbike', 'The man is doing a magic trick', 'A man is dangerously throwing knives at a tree', 'The person is practicing the guitar', 'The boy is playing in the mud', 'A cat is playing with a device', 'A boy in his teens is talking to a girl with a webcam', 'One man is chatting with a girl with an internet camera', 'A person is strongly whisking eggs in a bowl', 'One woman is beating two eggs in the bowl and using a whisk made of wire', 'The man is granting an interview', 'A person is driving the white car', 'A man\'s white car is being driven away', 'A rope is being climbed by a man', 'A man is slicing the carrot with a machine', 'The cat is hungrily drinking milk', 'A baby is playing with a dog', 'The small boy is playing with the dog', 'The man is slicing potatoes', 'A man is attentively taking pictures of a lake', 'The man is setting up the camera and takes pictures of the sunset at the beach', 'The picture of a camera set up is being taken by a man on the beach at the sunset', 'A woman is cracking an egg into a bowl', 'Some people are playing cricket', 'A man is putting garlic on some bread slices', 'A person is sprinkling seasoning on several sliced and buttered loaves of bread', 'Two kids are pushing an inflatable crocodile in a pool', 'Someone is falling off a horse', 'Someone is falling off the horse', 'A woman is tapping her fingers', 'A boy is being knocked into the water by the dog', 'The man is eating cereal', 'A man is strumming the guitar', 'The person is playing the flute', 'A woman is adding spices to some meat', 'A can is being bitten by a dog', 'The cat is playing with a watermelon', 'A kid is playing a guitar', 'One woman is wakeboarding on the lake', 'The woman is waterskiing', 'Someone is banging a camera lens against a nail', 'The man is hammering a nail with a camera', 'A woman is slicing a carrot', 'The lady is adding cheese to the sauce', 'The person is setting fire to the cameras', 'One man is playing the guitar', 'A person is dicing an onion', 'A carrot is being sliced into pieces by a person', 'The person is slicing the potato', 'A man is preparing a dish', 'An onion is being sliced with a knife by the woman', 'Runners are competing in a race', 'A man is running', 'A man is playing the keyboard with his nose', 'A rhino, which is little, is following an adult rhino', 'A man is riding a motorcycle', 'A few people are singing', 'A man is playing a trumpet', 'A guitar is being played by the man', 'A man is dancing', 'A man is climbing a rope', 'A panda is climbing', 'The lady is dancing', 'A few people are floating on a raft', 'Some persons are riding and paddling a raft', 'The cat is eating some corn', 'The person is slicing a vegetable', 'A little girl is playing the piano', 'Someone is playing the guitar', 'The man is dancing', 'A few women are dancing', 'A flute is being played by the man', 'A person is cutting some mushrooms', 'A tiger is walking around a cage', 'A tiger is walking around aimlessly', 'The monkey is brushing the dog', 'A man is wearing a hat which is hard and is dancing', 'A couple of boys are playing a video game', 'A woman is slicing a potato', 'Vegetables are being sliced by a man', 'The lady is cracking an egg for the mixer', 'The lady is slicing up the meat', 'Ferrets are climbing down from a shelf', 'Several ferrets are climbing out of the cage', 'A man is getting into a car', 'A capsicum is being cut into pieces by a person', 'The person is slicing a clove of garlic into pieces', 'The person is not slicing a clove of garlic into pieces', 'A person is boiling noodles', 'A karate practitioner is kicking at another man who is wearing protective gloves for boxing', 'The man is kick boxing with a trainer', 'A seated woman is singing a song and playing the guitar', 'A woman on a rock is lying on a blanket and reading a book', 'A man is playing a guitar that is acoustic', 'The woman is playing an electric guitar', 'Eggs are being cracked into a bowl by the woman', 'A man and a woman are eating', 'A man and a woman are having a conversation', 'A person is pouring cooking oil into a pot', 'The dog is being walked by the woman', 'A guinea pig is eating a carrot', 'A man is slicing a carrot with a knife', 'An onion is being sliced by the woman', 'A plane is landing', 'A woman is preparing an egg in a skillet', 'A woman is pouring a mixture into a bowl and mixing it', 'A girl is playing the piano', 'The woman is cooking something', 'The cats are playing with each other', 'Two cats are fighting each other', 'Two people are riding a bike', 'Two people are driving a motorcycle', 'A person is riding a mechanical bull', 'The man is riding a bull which is mechanical', 'The flute is being played by the woman', 'Weights are being lifted by the man', 'A person is chopping down a tree with an axe', 'The girl is applying makeup to her face', 'A woman is putting on makeup', 'One herd of deer is crossing the street', 'The herd of caribous is crossing a road', 'An onion is being sliced by a woman', 'The woman is cutting a carrot', 'Two men are fighting in a pen for cattle', 'A woman is applying cosmetics to her eyelid', 'A banana is being eaten by a man', 'People are walking across a rope bridge over a rocky stream', 'Four people are walking on a bridge over a body of water', 'Several people are walking in line across a bridge', 'A young kid is jumping into water', 'A child is wearing a yellow jacket and is jumping down from a rock', 'A young child is riding a three wheeled scooter down the sidewalk', 'A toddler is playing with a plastic scooter toy', 'Three hikers are sitting on a mountainside and looking at the view with a pair of binoculars', 'A girl is skipping rope on near a street', 'Several people are gathered around a fire at night', 'A brown dog is standing in the water', 'An animal is swimming in a body of water', 'A kid is speeding down a steep slide', 'A boy is wearing all black and is sliding down a blow up slide', 'A man with moustaches is standing on a balcony and is looking at the road below', 'A small white dog is running across a lawn', 'A brown and white dog with a brown and black bandanna is running very fast', 'A dog on a leash is walking in the water', 'The dog is on a leash and is walking in the water', 'A little girl in a green coat and a boy holding a red sled are walking in the snow', 'A child is wearing a coat and is carrying a red sled near a child in a green and black coat', 'A toddler is sitting down', 'A woman is wearing a long black jacket and a brown hat and is walking past a park with a lot of blooming trees', 'A woman is walking in a road', 'Motorbikes are being ridden by two people', 'Bikers are riding on a trail', 'A man is leaning against a pole and is surrounded', 'A couple is looking at a map', 'A little dog is running on the sand', 'Two males are standing on a cliff edge and one is jumping into the water', 'A boy is playing a game with blocks made of wood', 'The boy in blue shirt is looking at his hand near the stack of blocks on table', 'A woman in a bikini is pulling a dog on a leash at the beach', 'A woman is standing at the beach with an animal on a leash', 'A small group of people are standing and two are sitting on the sofa', 'A group of five young adults are lounging indoors', 'A dog has its head inside a red and green gift bag', 'The red and brown dog is digging its nose inside a holiday gift bag', 'The rider is biking in the snow and wearing a red jacket', 'A cyclist is biking in a snowy forest at night', 'A girl with a bikini is playing in the sand', 'A young girl in swimming suite is jumping on the beach', 'A little kid is wearing a hat and is walking in the wet sand', 'A boy is wearing a white hat and is running on the beach', 'A man in a black hat is touching a cardboard box', 'A person in a black hat is reaching for a box', 'A blond child is going down a slide and throwing up his arms', 'A young girl with a heart tank top is raising her hands as she is sliding', 'Two dogs are playing on a beach', 'A brown dog is running after a dark dog on a rocky shore', 'Two dogs are playing on a beach made of rocks', 'A black animal is approaching a golden dog on pebbly beach', 'A large white animal is jumping up in the snow', 'Two young kids are wearing hats and sticking their colored tongues out', 'Two kids are sticking out blue and green colored tongues', 'A dog is standing on a mountain', 'A white dog is standing on a grassy hillside', 'Two children are rolling in muddy water', 'Two boys are laying in the water close to the beach', 'A black and brown dog is eyeing an insect', 'A brown and black dog is pointing the nose upwards', 'A large man is sitting in a military accessories store', 'Different things from a war are being shown to some people by a veteran', 'A grey dog is bouncing a soccer ball on its head on a lawn', 'A dog with a blue collar is playing with the ball outside', 'A young black child is waiting on the edge of a body of water near some buckets', 'A boy next to some buckets of rags is holding an object', 'Two children are playing with a ball in the park', 'Children are playing outside with a soccer ball on the green grass', 'A woman is wearing a colorful shirt and a lot of jewelry', 'A girl with Indian clothing and henna on her hand is going through paperwork', 'A man is standing in a gym and is wearing a jersey', 'A snowboarder is jumping off the snow', 'A lady is dressed in black and is carrying a white cross', 'A woman in a black dress is pulling a cart and is standing near two men who are seated on a park bench', 'A boy in a swimsuit is sitting on a circular fountain', 'A boy is standing next to the opening of a fountain', 'A brown and white dog is jumping on the sidewalk', 'A little brown and white dog is running on the sidewalk', 'The person is walking', 'A yellow dog is chasing a ball', 'A dog is turning on the grass and pursuing a flying ball', 'A woman in blue jeans is standing in front of a group of children beside a stone built house', 'A lady is standing on the street and is surrounded by kids', 'The bike is being ridden by a girl in a strange outfit', 'A bike is being ridden by a woman wearing paint and costume pieces on a busy street', 'A shirtless man is jumping over a log', 'The black dog is carrying a blue and white toy in its mouth', 'A dog is running with a ball', 'A girl in a band is playing an instrument', 'A person is standing at the wheel of a classic American car that has its door and trunk open', 'The man in blue is posing for a picture next to a car', 'Two people are sitting on a bench', 'A woman is sitting near a flower bed and is overlooking a tunnel', 'A man is wearing a clear plastic cap and a face mask', 'A man by a wall made of bricks is wearing a mask around his mouth and a hair net', 'Two animals are in a kennel on their hind legs and are facing one another', 'Two cats are in a kennel on their hind legs and are facing one another', 'Two dogs are playing with each other', 'Two dogs and two people are walking in a wood', 'A person is snowboarding down a railing in the snow', 'A man is skiing down a hill and jumping a red obstacle', 'Two men are taking a break from work', 'Two construction workers are sitting up on the side of a building', 'A man in a red shirt is doing a trick with a skateboard', 'A skateboarder is jumping in the air', 'A snowboarder is grinding down a long rail', 'A person is doing a trick on a snowboard', 'Three friends are making faces for a photo', 'The friends are making faces for the camera', 'Two men and a girl in front of a wood panel wall are making funny faces', 'A group of people is walking down the street and a person in a hat is on the phone', 'A person is standing in the snow at the edge of a mountain', 'A man is standing at dusk on an almost pristine road covered by snow, that is lit only by headlights', 'Some women are sitting together near woven walls', 'Three women are sitting in a village', 'A surfer is surfing a huge wave', 'A person with a red hooded jacket and a black backpack is moving near a rocky wall', 'A person in a red jacket and khaki pants is walking through an American state', 'The players is maneuvering for the ball', 'A man in green is kicking a soccer ball and a man in purple and white is falling down', 'A kid is splashing in the water', 'Two children are playing', 'A model is wearing a purple shirt and black leather chaps and is posing for the camera', 'The man dressed in leather chaps and a purple shirt is standing in front of someone lookers', 'Two dogs are running and trying to catch a ball', 'Two dogs on a lawn are playing with a plastic toy', 'Two people dressed in green and red costumes are outside near the street', 'People in costumes are walking around in the street', 'A dog is in a sandy area with the sand that is being stirred up into the air and several plants are in the background', 'A black and white dog is running outdoors', 'A man and a woman are standing on the curb', 'A woman wearing a blue shirt and high heels is standing on the sidewalk next to the man', 'A dog is jumping in the shade of some trees', 'A dog is jumping into the air in the country', 'The man on a green bike is performing tricks on the dirt ramp', 'A person on a bike is in the air near a body of water', 'A kid is waiting wearing swim gear', 'A kid is sitting wearing swim gear', 'Two dogs are fighting', 'Four dogs are playing in a grassy area', 'The dog is having a rest in the park', 'A brown dog is gnawing a metallic post that is stuck in the ground', 'A brown puppy is biting a pole', 'A woman is petting a dog near a stone path', 'Two men are walking through the water', 'Two cars are racing down the track', 'Two cars for racing are on a road in front of a grassy parking area', 'The orange rider is driving a motorcycle on one wheel', 'A biker on a yellow sport bike is doing a wheelie and a friend on a black bike is catching up', 'A group of children is playing tambourines', 'A dog is running through the snow', 'An old person is sitting on a bench', 'The woman is sitting on a bench and is wearing a gray jacket and black pants', 'A dog is fetching a stick out of very clear water', 'A small black and white dog is biting a stick and is swimming', 'The lady is holding the paintbrush next to the artist\'s easel', 'The girl in the blue coverall is painting', 'A dog is running', 'A yellow dog is running down a path covered by sand', 'The black and white dog is jumping for the ball', 'A dog is standing on one leg and is waiting for a ball', 'Two people are seated on a camel and another camel is in the foreground', 'People are riding two camels on the sand', 'A person is wearing a blue shirt and walking barefoot on a tennis court', 'A barefoot man in pajamas is looking toward the sky and is walking on the tennis court', 'The man is standing in a body of water near a waterfall', 'A brown and white dog is running through the water', 'An animal is emerging from a lake', 'A dog is running on the sand and chasing a ball', 'A shirtless man is leading a carriage that is being pulled by a horse', 'A young girl is playing on the edge of a fountain and an older woman is watching her', 'A little girl and a woman wearing a yellow shirt are getting splashed near a fountain', 'A girl in an orange shirt and clown makeup is standing in a park and others are looking on', 'A girl is wearing an orange shirt and a striped tie', 'A bicyclist is performing a trick over wall full of graffiti', 'A woman is showing a small dog to an infant', 'A woman is crouching down next to a dog and is smiling at a little girl sitting on the sidewalk', 'A boy is running through the sand', 'The motorcycle racer is riding a red and black bike', 'A woman is shooting at target practice', 'Two kids are looking up at the camera and one is sticking out his tongue', 'The large dog is walking outside and is holding a colorful toy in its mouth', 'A dog is running on concrete and is holding a ball'];
  
  const dialogue = ['白英爱，你周末喜欢做什么', '我喜欢打球，看电视, 你呢', '我喜欢唱歌，跳舞，还喜欢听音乐',
      '你也喜欢看书，对不对', '对，有的时候也喜欢看书', '你喜欢不喜欢看电影', '喜欢，我周末常常看电影',
      '那我们今天晚上去看一个外国电影, 怎么样', '我请客', '为什么你请客', '因为昨天你请我吃饭，所以今天我请你看电影',
      '那你也请王朋、李友，好吗', '好'];
  
  async function TFJSDialogue() {
      const input = '你们在干什么';
  
      // Load the model
      const model = await use.load();
      let promScores = [];
  
      dialogue.forEach((e) => {
          promScores.push(new Promise(async (resolve) => {
              let comp = [input];
              comp.push(e);
  
              const embeddings = await model.embed(comp);
              // embeddings.print(true /* verbose */);
              let arr = embeddings.arraySync();
              let dist = 0;
              arr[0].forEach((e, i) => {
                  dist += Math.pow(e - arr[1][i], 2);
              });
  
              resolve(dist);
          }));
      });
  
      var scores = await Promise.all(promScores);
  
      var index = scores.indexOf(Math.min.apply(Math, scores));
      var response;
  
      if (index === scores.length) {
          response = "No more dialogue."
      } else {
          response = dialogue[index + 1];
      }
  
      console.log("Input: ", input);
      console.log("TFJS Response: ", response);
  }
  
  function sentenceSimDialogue() {
      const input = '你们在干什么';
  
      let ssScores = [];
  
      let winkOpts = { f: similarityScore.winklerMetaphone, options: { threshold: 0 } }
      dialogue.forEach((e) => {
          let splitInput = [...input];
          let splitE = [...e];
          ssScores.push(similarity(splitInput, splitE, winkOpts).score);
      });
  
      var ssIndex = ssScores.indexOf(Math.min.apply(Math, ssScores));
      var ssResponse;
  
      if (ssIndex === ssScores.length) {
          ssResponse = "No more dialogue."
      } else {
          ssResponse = dialogue[ssIndex + 1];
      }
  
      console.log("Input: ", input);
      console.log("SS Response: ", ssResponse);
  }
  
  async function TFJS_SICK(input) {
      const model = await use.load();
  
      const embeddings = await model.embed([input].concat(dataset)); // Can I change embedding dimension? How can I store embeddings?
      embeddings.print(true /* verbose */);
  
      let inputEmbedding = embeddings.gather(0);
      let m = embeddings.shape[0];
      let n = embeddings.shape[1];
      let cosineDistances = [];
      for (let i = 1; i < m; i++) {
          let compare = embeddings.gather(i);
          let prox = tf.metrics.cosineProximity(inputEmbedding, compare);
          cosineDistances.push(prox.dataSync()[0]);
      }
  
      let closestIndex = cosineDistances.indexOf(Math.min(...cosineDistances));
      console.log("Most similar: ", dataset[closestIndex]);
  }
  
  async function compareCosines() {
      let similarSentences = ["A motorcycle rider is standing up on the seat of a white motorcycle",
          "Someone is on a black and white motorcycle and is standing on the seat",
          "A motorcyclist is riding a motorbike dangerously along a roadway",
          "A man with a helmet painted red is riding a blue motorcycle down the road",
          "A motorcyclist with a red helmet is riding a blue motorcycle down the road",
          "Somebody is driving a motorcycle and driving down the street"];
  
      let dissimilarSentences = ["A family is watching a little boy who is hitting a baseball",
          "A dog is catching a stick in the air and another is watching",
          "The blond girl is dancing in front of the sound equipment",
          "Three Asian kids are dancing and a serious man is looking",
          "A woman is wearing an Egyptian hat on her head",
          "A man with paint covered clothes is sitting outside in a busy area writing something",
          "A little dog is sprinting and the person who owns it is trying to catch it",
          "A person is climbing a rock with a rope, which is pink", "A woman is cutting a white onion"];
  
      const model = await use.load();
      const similarEmbeddings = await model.embed(similarSentences);
  
      let m = similarEmbeddings.shape[0];
      let similarCosines = [];
      for (let i = 0; i < m - 1; i++) {
          let comp1 = similarEmbeddings.gather(i);
  
          for (let j = i + 1; j < m; j++) {
              let comp2 = similarEmbeddings.gather(j);
  
              let prox = [tf.metrics.cosineProximity(comp1, comp2).dataSync()[0], similarSentences[i], similarSentences[j]];
              similarCosines.push(prox);
          }
      }
  
      const dissimilarEmbeddings = await model.embed(dissimilarSentences);
      m = dissimilarEmbeddings.shape[0];
      let dissimilarCosines = [];
      for (let i = 0; i < m - 1; i++) {
          let comp1 = dissimilarEmbeddings.gather(i);
  
          for (let j = i + 1; j < m; j++) {
              let comp2 = dissimilarEmbeddings.gather(j);
  
              let prox = [tf.metrics.cosineProximity(comp1, comp2).dataSync()[0], dissimilarSentences[i], dissimilarSentences[j]];
              dissimilarCosines.push(prox);
          }
      }
  
      console.log(similarCosines.sort());
      console.log(dissimilarCosines.sort());
  }
  
  app.get('/', function (req, res) {
      res.send('Hello World!');
  });
  
  app.listen(3000, async function () {
      // TFJS_SICK("Some guy leaps into a dry pool."); // 'A man is jumping into an empty swimming pool'
      compareCosines();
  });