Last active
November 17, 2016 17:55
-
-
Save shawnsi/b75fca70b8baa590803c8a8e397fcffa to your computer and use it in GitHub Desktop.
Food Nouns
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import requests | |
from nltk import download, pos_tag, word_tokenize | |
download('punkt') | |
download('averaged_perceptron_tagger') | |
response = requests.get('http://www.textfiles.com/food/food') | |
text = word_tokenize(response.text) | |
for token, tag in pos_tag(text): | |
if tag.startswith('NN'): | |
print(token) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Chapter | |
FOOD | |
FDA | |
considers | |
consumption | |
microscopic | |
fragments | |
grams | |
ounces | |
candy | |
bar | |
Chocolate | |
dogs | |
ounces | |
heart | |
attack | |
percent | |
food | |
front | |
refrigerator | |
door | |
Appetites | |
Worlds | |
meal | |
bicycle | |
man | |
powder | |
boy | |
pounds | |
food | |
week | |
boy | |
report | |
boy | |
weight | |
pounds | |
year | |
cow | |
hours | |
day | |
man | |
ate | |
meal | |
pounds | |
hammer | |
thrower | |
dozen | |
eggs | |
breakfast | |
shells | |
affair | |
Clodius | |
Roman | |
actor | |
birds | |
voice | |
lessons | |
cost | |
bird | |
birds | |
pie | |
guests | |
drink | |
pearl | |
worth | |
dollars | |
Historians | |
onion | |
dessert | |
Romans | |
Africa | |
termites | |
People | |
Laos | |
waterbugs | |
Japan | |
money | |
order | |
beef | |
cattle | |
darkness | |
beer | |
custom | |
massages | |
masseurs | |
king | |
oysters | |
pineapple | |
glutton | |
King | |
Louis | |
XIV | |
bite | |
lips | |
pineapples | |
France | |
Professor | |
William | |
Buckland | |
heart | |
King | |
Louis | |
XIV | |
grave | |
robbers | |
History | |
Food | |
Bible | |
fruit | |
Eve | |
ate | |
Garden | |
Eden | |
apple | |
Koran | |
book | |
Islam | |
banana | |
scientists | |
fruit | |
lemon | |
apples | |
time | |
place | |
Eden | |
word | |
salary | |
word | |
salt | |
Roman | |
times | |
Salt | |
trading | |
medium | |
money | |
years | |
people | |
everything | |
fingers | |
people | |
forks | |
England | |
everyone | |
idea | |
tools | |
reason | |
tablecloths | |
towel | |
fingers | |
hands | |
century | |
John | |
Montagu | |
Earl | |
Sandwich | |
meal | |
hand | |
gambling | |
Coca-Cola | |
Hires | |
Root | |
Beer | |
Dr. | |
Pepper | |
year | |
John | |
Pemberton | |
inventor | |
Coca-Cola | |
Brain | |
Tonic | |
Intellectual | |
Beverage | |
7-Up | |
Bib-Label | |
Lithiated | |
Lemon-Lime | |
Soda | |
size | |
ounces | |
Up | |
bottoms | |
advertising | |
slogan | |
7-Up | |
popsicles | |
Epsicles | |
Frank | |
Epperson | |
inventor | |
Ketchup | |
broth | |
mushrooms | |
Tomatoes | |
Today | |
sugar | |
imitation | |
ketchup | |
Ninety | |
years | |
minutes | |
money | |
quart | |
milk | |
minutes | |
M | |
M | |
candies | |
Forrest | |
Mars | |
Bruce | |
Murries | |
inventors | |
field | |
snack | |
soldiers | |
mouth | |
hand | |
Fruits | |
Vegetables | |
Cherries | |
taste | |
leaves | |
twigs | |
cherry | |
tree | |
Strawberries | |
fruits | |
seeds | |
People | |
tomatoes | |
strawberry | |
Americans | |
miles | |
carrots | |
day | |
A | |
engineer | |
Japan | |
watermelons | |
round | |
ones | |
Celery | |
effect | |
skinnier | |
energy | |
celery | |
calories | |
pounds | |
potatoes | |
pound | |
weight | |
century | |
Americans | |
potatoes | |
health | |
cabbage | |
water | |
carrots | |
apples | |
fridge | |
carrots | |
ethylene | |
fumes | |
apples | |
Sugar | |
plant | |
Hernandulcin | |
times | |
sugar | |
trucks | |
kids | |
eat | |
year | |
line | |
San | |
Diego | |
San | |
Francisco | |
diets | |
inmates | |
Virginia | |
juvenile | |
detention | |
center | |
junk | |
food | |
foods | |
cereal | |
sugar | |
fruit | |
juice | |
soda | |
kids | |
offenders | |
percent | |
kids | |
percent | |
Meat | |
restaurant | |
chicken | |
meat | |
dark | |
meat | |
Kentucky | |
Fried | |
Chicken | |
store | |
Beijing | |
China | |
Americans | |
chickens | |
Just | |
game | |
Babe | |
Ruth | |
hospital | |
stomach | |
pain | |
dogs | |
row | |
people | |
dog | |
cow | |
brains | |
lips | |
eyes | |
stomachs | |
tails | |
Americans | |
average | |
forty | |
things | |
year | |
cost | |
dollars | |
line | |
miles | |
water | |
cattle | |
business | |
taxpayers | |
beef | |
pound | |
people | |
vegetarians | |
Albert | |
Einstein | |
George | |
Bernard | |
Shaw | |
Leo | |
Tolstoy | |
Clara | |
Barton | |
Mahatma | |
Ghandi | |
Mr. | |
Rogers | |
Leonardo | |
da | |
Vinci | |
Jeff | |
Juliano | |
Ronald | |
McDonald | |
All | |
members | |
Roman | |
empire | |
vegetarians | |
Julias | |
Caesar | |
case | |
dying | |
snakebite | |
America | |
Drink | |
America | |
people | |
sugar | |
tea | |
coffee | |
parts | |
China | |
people | |
tea | |
Voltaire | |
drank | |
cups | |
coffee | |
day | |
France | |
person | |
gallons | |
wine | |
year | |
Americans | |
gallons | |
orange | |
juice | |
day | |
gallons | |
beer | |
average | |
Americans | |
times | |
beer | |
orange | |
juice | |
Old | |
England | |
people | |
beer | |
breakfast | |
days | |
people | |
beer | |
bottles | |
cans | |
store | |
tavern | |
beer | |
home | |
bucket | |
Japan | |
liquor | |
bodies | |
snakes | |
everyone | |
quit | |
beverages | |
people | |
grain | |
Food | |
Facts | |
makers | |
Hellman | |
Mayonnaise | |
belief | |
product | |
case | |
customer | |
acid | |
salt | |
product | |
bacteria | |
people | |
day | |
die | |
America | |
something | |
food | |
eggs | |
Americans | |
day | |
Chicago | |
Waikiki | |
miles | |
eat | |
pounds | |
chemical | |
food | |
additives | |
year | |
wheat | |
loaf | |
tons | |
water | |
ton | |
wheat | |
acre | |
potatoes | |
acre | |
tons | |
scientist | |
drink | |
weight | |
way | |
drink | |
intestines | |
fluorocarbon | |
ability | |
nutrition | |
stuff | |
benefit | |
Americans | |
pounds | |
pounds | |
Overweight | |
Americans | |
cost | |
gallons | |
gasoline | |
year | |
water | |
plants | |
Club | |
Soda | |
color | |
vitality | |
Food | |
hours | |
path | |
body | |
Chop | |
suey | |
America | |
Honey | |
foods | |
Haggis | |
Scotland | |
onions | |
heart | |
lungs | |
liver | |
stomach | |
eggs | |
surface | |
raw | |
custom | |
piece | |
toast | |
wine | |
flavor | |
particles | |
term | |
Potato | |
chips | |
times | |
pound | |
potatoes | |
cost | |
insurance | |
percent | |
diet | |
study | |
Senate | |
Committee | |
Nutrition | |
Human | |
Needs | |
diet | |
percent | |
people | |
heart | |
attacks | |
scientists | |
Tucson | |
Arizona | |
peoples | |
garbage | |
cans | |
Americans | |
percent | |
food | |
dollars | |
food | |
year | |
trick | |
jugglers | |
items | |
apple | |
apple | |
laughter | |
apple | |
juice | |
bits | |
apple | |
end | |
stage | |
juggler | |
finishes | |
John | |
juggler | |
Chicago | |
apple | |
trick | |
hundreds | |
times | |
apple | |
mouth | |
bites | |
apple | |
stage | |
afterwards | |
occasion | |
John | |
end | |
apple | |
routine | |
crowd | |
bit | |
bite | |
bite | |
apple | |
throat | |
John | |
stage |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment