PYTHON 3.0 HELP!!!

book1 = {
"squirtle" : ["wartortle"],
"wartortle" : ["blastoise"],
"blastoise" : [],
"charmander" : ["charmeleon"],
"charmeleon" : ["charizard"],
"charizard" : [],
"bulbasaur" : ["ivysaur"],
"ivysaur" : ["venusaur"],
"venusaur" : []
}
book2 = {
"eevee" : ["jolteon", "flareon", "vaporeon"],
"jolteon" : ["zapdos"],
"vaporeon" : ["articuno"],
"flareon" : ["moltres"]
}
book3 = {
'cubone': ['dragonite', 'magmar', 'tangela'],
'krabby': ['vaporeon', 'chansey', 'zapdos', 'electabuzz'],
'spearow': ['mewtwo', 'seadra', 'tentacool'],
'primeape': ['weepinbell', 'hitmonchan', 'mew', 'porygon', 'dewgong'],
'snorlax': ['moltres', 'dragonair', 'dratini', 'mewtwo', 'mew'],
'wartortle': ['rattata', 'weepinbell', 'seaking'],
'flareon': ['porygon', 'dratini', 'articuno'],
'clefairy': ['staryu'],
'rattata': ['bellsprout', 'nidorino'],
'machoke': ['staryu', 'bellsprout'],
'vileplume': ['doduo', 'victreebel', 'machop', 'starmie', 'kabuto'],
'dugtrio': ['golem', 'kadabra', 'rapidash', 'hitmonchan', 'aerodactyl'],
'venusaur': [],
'bulbasaur': [],
'onix': ['horsea'],
'weezing': ['snorlax'],
'beedrill': ['grimer', 'bellsprout', 'clefable', 'arbok'],
'butterfree': ['persian', 'dragonair', 'machop', 'starmie', 'dodrio'],
'charmeleon': ['oddish', 'seel', 'persian', 'seaking', 'poliwrath'],
'paras': ['seadra'],
'raticate': ['raichu', 'voltorb', 'sandshrew'],
'gyarados': ['articuno', 'moltres', 'flareon', 'dratini'],
'mr.mime': [],
'kabutops': ['dragonite', 'aerodactyl', 'mewtwo', 'dragonair'],
'poliwhirl': ['golem', 'graveler', 'magikarp', 'electabuzz', 'mr.mime'],
'muk': ['tauros', 'omanyte', 'mewtwo', 'electrode', 'cubone'],
'rapidash': ['gyarados', 'electrode'],
'golem': [],
'rhydon': ['jynx'],
'zapdos': ['dragonair', 'mewtwo', 'dratini'],
'golduck': ['hypno', 'dewgong', 'jolteon', 'poliwag'],
'gengar': ['jolteon', 'seaking', 'jynx'],
'arcanine': [],
'mew': [],
'gloom': [],
'vulpix': ['wigglytuff'],
'articuno': ['mew', 'zapdos', 'dragonair'],
'ponyta': ['eevee', 'tauros', 'mr.mime', 'horsea'],
'pinsir': ['ditto', 'zapdos'],
'grimer': ['kabutops'],
'nidoqueen': [],
'tangela': ['horsea', 'scyther', 'pinsir', 'kabutops', 'mewtwo'],
'ivysaur': ['marowak', 'krabby', 'growlithe'],
'electabuzz': ['gyarados', 'ditto', 'kabutops', 'porygon'],
'weedle': ['raichu', 'mew', 'snorlax', 'voltorb'],
'omanyte': ['mewtwo', 'zapdos'],
'magnemite': [],
'marowak': ['dratini', 'porygon', 'kabutops', 'goldeen'],
'pidgey': [],
'dragonair': [],
'poliwag': [],
'magikarp': ['articuno', 'kabutops', 'lapras', 'mew'],
'fearow': ['omastar'],
'slowpoke': ['koffing', 'farfetchd', 'hypno', 'krabby', 'gengar'],
'starmie': ['dragonite', 'magikarp', 'scyther'],
'ekans': ['slowbro', 'paras', 'electrode', 'rapidash'],
'meowth': ['dodrio', 'poliwrath', 'ditto', 'tentacool', 'aerodactyl'],
'raichu': [],
'kabuto': ['aerodactyl', 'articuno', 'kabutops'],
'charizard': [],
'oddish': ['flareon', 'horsea', 'drowzee', 'tauros'],
'wigglytuff': ['dragonite', 'oddish'],
'pidgeot': ['seel', 'bellsprout'],
'hitmonlee': ['seaking', 'mew', 'gyarados'],
'charmander': [],
'mewtwo': ['mew'],
'bellsprout': ['tauros', 'gengar', 'electabuzz', 'ponyta'],
'hypno': ['flareon'],
'kadabra': [],
'nidoking': ['venonat', 'muk', 'farfetchd', 'zubat', 'articuno'],
'sandslash': ['gyarados', 'golbat', 'alakazam', 'mewtwo', 'poliwrath'],
'diglett': ['graveler'],
'ditto': ['kabuto', 'vaporeon', 'aerodactyl'],
'arbok': ['horsea', 'primeape', 'hitmonlee'],
'abra': ['grimer', 'tangela', 'dragonite'],
'jigglypuff': [],
'tentacool': ['weezing', 'mewtwo', 'farfetchd', 'moltres', 'grimer'],
'tentacruel': ['dodrio'],
'tauros': ['flareon', 'moltres', 'porygon', 'omanyte'],
'dodrio': [],
'exeggcute': [],
'victreebel': ['tentacruel', 'seaking', 'ditto', 'lapras'],
'nidoranfemale': ['jynx', 'persian', 'shellder', 'mewtwo'],
'shellder': ['vaporeon', 'marowak', 'articuno', 'tauros', 'gyarados'],
'nidorino': ['omanyte', 'gastly', 'magneton', 'marowak', 'paras'],
'aerodactyl': ['zapdos'],
'kingler': ['mew', 'cubone', 'mr.mime', 'dratini', 'weezing'],
'seadra': ['mr.mime', 'scyther', 'jynx', 'electabuzz', 'magmar'],
'exeggutor': ['mr.mime', 'dragonite', 'hitmonchan', 'flareon', 'gyarados'],
'koffing': ['weezing', 'chansey', 'omastar'],
'farfetchd': ['rhyhorn', 'cloyster', 'moltres', 'vaporeon', 'dodrio'],
'jolteon': ['kabutops', 'snorlax', 'omastar', 'aerodactyl'],
'sandshrew': ['lickitung', 'nidoranmale', 'clefairy'],
'magmar': ['snorlax', 'tauros', 'pinsir', 'lapras'],
'electrode': ['lapras', 'staryu', 'seaking', 'marowak', 'horsea'],
'dratini': [],
'mankey': ['farfetchd', 'electrode'],
'magneton': ['mr.mime', 'kabutops'],
'staryu': ['ditto', 'dratini'],
'seaking': ['staryu', 'magikarp', 'starmie', 'dragonite'],
'caterpie': ['weedle', 'vulpix', 'shellder', 'moltres'],
'blastoise': ['electrode', 'vileplume', 'gastly', 'goldeen', 'sandslash'],
'pidgeotto': ['lickitung', 'spearow'],
'pikachu': ['hitmonlee'],
'weepinbell': [],
'gastly': ['seadra', 'mew', 'rhydon', 'horsea', 'tangela'],
'scyther': ['jynx', 'articuno', 'mew'],
'porygon': ['aerodactyl', 'mewtwo', 'kabuto'],
'poliwrath': ['machop', 'victreebel', 'seel', 'gengar', 'vaporeon'],
'dragonite': ['mewtwo', 'mew'],
'geodude': ['magneton', 'seel', 'cubone'],
'hitmonchan': [],
'lickitung': [],
'eevee': ['articuno', 'jolteon', 'flareon'],
'venomoth': [],
'moltres': ['dragonair'],
'metapod': [],
'horsea': ['moltres'],
'graveler': ['seaking', 'tangela', 'slowpoke'],
'kangaskhan': ['dragonite', 'kabuto', 'zapdos', 'moltres'],
'cloyster': ['mr.mime', 'marowak', 'kabutops', 'gengar', 'eevee'],
'machop': ['staryu', 'machamp', 'slowpoke', 'dodrio'],
'kakuna': ['scyther', 'zubat'],
'voltorb': ['porygon', 'pinsir', 'dragonite', 'jolteon', 'moltres'],
'ninetales': ['farfetchd', 'parasect', 'ponyta', 'mewtwo'],
'machamp': ['onix', 'marowak'],
'jynx': ['dratini', 'tauros', 'snorlax'],
'seel': ['haunter', 'kangaskhan'],
'dewgong': ['hitmonchan', 'pinsir', 'eevee'],
'growlithe': ['kabutops', 'shellder', 'farfetchd', 'chansey'],
'vaporeon': ['porygon', 'jolteon', 'aerodactyl'],
'haunter': ['koffing', 'rhyhorn', 'aerodactyl'],
'nidorina': [],
'alakazam': ['krabby', 'machoke', 'tauros', 'horsea'],
'venonat': ['magmar', 'drowzee'],
'nidoranmale': [],
'omastar': [],
'golbat': ['scyther', 'parasect', 'oddish'],
'parasect': ['persian', 'electabuzz'],
'squirtle': [],
'drowzee': [],
'chansey': ['pinsir', 'vaporeon'],
'slowbro': [],
'rhyhorn': ['staryu'],
'clefable': ['golbat', 'ditto'],
'goldeen': ['magikarp'],
'zubat': ['eevee', 'gyarados', 'dodrio', 'seadra'],
'doduo': ['shellder'],
'lapras': ['omanyte', 'omastar', 'mewtwo'],
'persian': ['golduck'],
'psyduck': ['abra'],
}
# uncomment these lines when you are ready to test
# print("Using book1, can bulbasaur evolve to venusaur?")
# print(can_evolve(book1, "bulbasaur", "venusaur"))
# print("Using book1, can charmeleon evolve to blastoise?")
# print(can_evolve(book1, "charmeleon", "blastoise"))
# print("Using book2, can eevee evolve to articuno?")
# print(can_evolve(book2, "eevee", "articuno"))
# print("Using book3, can cubone evolve to charizard?")
# print(can_evolve(book3, "cubone", "charizard"))
# print("Using book3, can magikarp evolve to mewtwo?")
# print(can_evolve(book3, "magikarp", "mewtwo"))
Here is the code for the question. Output also shown. Please don't forget to rate the answer if it helped. Thank you very much.
===============
def can_evolve(book, pokemon1, pokemon2):
if pokemon1 not in book: #check if the pokemon1 does not exists in
the book
return False;
evolve_list = book[pokemon1]; #get the list of evolution for
pokemon1
if not evolve_list: #is list empty
return False;
else:
if pokemon2 in evolve_list: #found pokemon2 in evolution list
return True;
else:
for p in evolve_list: #iterate through each pokemon and see if it
can evolve to pokemon2
if can_evolve(book, p, pokemon2):
return True;
return False; #any pokemon in evolution list did not evolve to
pokemon2
book1 = {
"squirtle" : ["wartortle"],
"wartortle" : ["blastoise"],
"blastoise" : [],
"charmander" : ["charmeleon"],
"charmeleon" : ["charizard"],
"charizard" : [],
"bulbasaur" : ["ivysaur"],
"ivysaur" : ["venusaur"],
"venusaur" : []
}
book2 = {
"eevee" : ["jolteon", "flareon", "vaporeon"],
"jolteon" : ["zapdos"],
"vaporeon" : ["articuno"],
"flareon" : ["moltres"]
}
book3 = {
'cubone': ['dragonite', 'magmar', 'tangela'],
'krabby': ['vaporeon', 'chansey', 'zapdos', 'electabuzz'],
'spearow': ['mewtwo', 'seadra', 'tentacool'],
'primeape': ['weepinbell', 'hitmonchan', 'mew', 'porygon',
'dewgong'],
'snorlax': ['moltres', 'dragonair', 'dratini', 'mewtwo',
'mew'],
'wartortle': ['rattata', 'weepinbell', 'seaking'],
'flareon': ['porygon', 'dratini', 'articuno'],
'clefairy': ['staryu'],
'rattata': ['bellsprout', 'nidorino'],
'machoke': ['staryu', 'bellsprout'],
'vileplume': ['doduo', 'victreebel', 'machop', 'starmie',
'kabuto'],
'dugtrio': ['golem', 'kadabra', 'rapidash', 'hitmonchan',
'aerodactyl'],
'venusaur': [],
'bulbasaur': [],
'onix': ['horsea'],
'weezing': ['snorlax'],
'beedrill': ['grimer', 'bellsprout', 'clefable', 'arbok'],
'butterfree': ['persian', 'dragonair', 'machop', 'starmie',
'dodrio'],
'charmeleon': ['oddish', 'seel', 'persian', 'seaking',
'poliwrath'],
'paras': ['seadra'],
'raticate': ['raichu', 'voltorb', 'sandshrew'],
'gyarados': ['articuno', 'moltres', 'flareon', 'dratini'],
'mr.mime': [],
'kabutops': ['dragonite', 'aerodactyl', 'mewtwo',
'dragonair'],
'poliwhirl': ['golem', 'graveler', 'magikarp', 'electabuzz',
'mr.mime'],
'muk': ['tauros', 'omanyte', 'mewtwo', 'electrode',
'cubone'],
'rapidash': ['gyarados', 'electrode'],
'golem': [],
'rhydon': ['jynx'],
'zapdos': ['dragonair', 'mewtwo', 'dratini'],
'golduck': ['hypno', 'dewgong', 'jolteon', 'poliwag'],
'gengar': ['jolteon', 'seaking', 'jynx'],
'arcanine': [],
'mew': [],
'gloom': [],
'vulpix': ['wigglytuff'],
'articuno': ['mew', 'zapdos', 'dragonair'],
'ponyta': ['eevee', 'tauros', 'mr.mime', 'horsea'],
'pinsir': ['ditto', 'zapdos'],
'grimer': ['kabutops'],
'nidoqueen': [],
'tangela': ['horsea', 'scyther', 'pinsir', 'kabutops',
'mewtwo'],
'ivysaur': ['marowak', 'krabby', 'growlithe'],
'electabuzz': ['gyarados', 'ditto', 'kabutops', 'porygon'],
'weedle': ['raichu', 'mew', 'snorlax', 'voltorb'],
'omanyte': ['mewtwo', 'zapdos'],
'magnemite': [],
'marowak': ['dratini', 'porygon', 'kabutops', 'goldeen'],
'pidgey': [],
'dragonair': [],
'poliwag': [],
'magikarp': ['articuno', 'kabutops', 'lapras', 'mew'],
'fearow': ['omastar'],
'slowpoke': ['koffing', 'farfetchd', 'hypno', 'krabby',
'gengar'],
'starmie': ['dragonite', 'magikarp', 'scyther'],
'ekans': ['slowbro', 'paras', 'electrode', 'rapidash'],
'meowth': ['dodrio', 'poliwrath', 'ditto', 'tentacool',
'aerodactyl'],
'raichu': [],
'kabuto': ['aerodactyl', 'articuno', 'kabutops'],
'charizard': [],
'oddish': ['flareon', 'horsea', 'drowzee', 'tauros'],
'wigglytuff': ['dragonite', 'oddish'],
'pidgeot': ['seel', 'bellsprout'],
'hitmonlee': ['seaking', 'mew', 'gyarados'],
'charmander': [],
'mewtwo': ['mew'],
'bellsprout': ['tauros', 'gengar', 'electabuzz', 'ponyta'],
'hypno': ['flareon'],
'kadabra': [],
'nidoking': ['venonat', 'muk', 'farfetchd', 'zubat',
'articuno'],
'sandslash': ['gyarados', 'golbat', 'alakazam', 'mewtwo',
'poliwrath'],
'diglett': ['graveler'],
'ditto': ['kabuto', 'vaporeon', 'aerodactyl'],
'arbok': ['horsea', 'primeape', 'hitmonlee'],
'abra': ['grimer', 'tangela', 'dragonite'],
'jigglypuff': [],
'tentacool': ['weezing', 'mewtwo', 'farfetchd', 'moltres',
'grimer'],
'tentacruel': ['dodrio'],
'tauros': ['flareon', 'moltres', 'porygon', 'omanyte'],
'dodrio': [],
'exeggcute': [],
'victreebel': ['tentacruel', 'seaking', 'ditto', 'lapras'],
'nidoranfemale': ['jynx', 'persian', 'shellder', 'mewtwo'],
'shellder': ['vaporeon', 'marowak', 'articuno', 'tauros',
'gyarados'],
'nidorino': ['omanyte', 'gastly', 'magneton', 'marowak',
'paras'],
'aerodactyl': ['zapdos'],
'kingler': ['mew', 'cubone', 'mr.mime', 'dratini',
'weezing'],
'seadra': ['mr.mime', 'scyther', 'jynx', 'electabuzz',
'magmar'],
'exeggutor': ['mr.mime', 'dragonite', 'hitmonchan', 'flareon',
'gyarados'],
'koffing': ['weezing', 'chansey', 'omastar'],
'farfetchd': ['rhyhorn', 'cloyster', 'moltres', 'vaporeon',
'dodrio'],
'jolteon': ['kabutops', 'snorlax', 'omastar', 'aerodactyl'],
'sandshrew': ['lickitung', 'nidoranmale', 'clefairy'],
'magmar': ['snorlax', 'tauros', 'pinsir', 'lapras'],
'electrode': ['lapras', 'staryu', 'seaking', 'marowak',
'horsea'],
'dratini': [],
'mankey': ['farfetchd', 'electrode'],
'magneton': ['mr.mime', 'kabutops'],
'staryu': ['ditto', 'dratini'],
'seaking': ['staryu', 'magikarp', 'starmie', 'dragonite'],
'caterpie': ['weedle', 'vulpix', 'shellder', 'moltres'],
'blastoise': ['electrode', 'vileplume', 'gastly', 'goldeen',
'sandslash'],
'pidgeotto': ['lickitung', 'spearow'],
'pikachu': ['hitmonlee'],
'weepinbell': [],
'gastly': ['seadra', 'mew', 'rhydon', 'horsea', 'tangela'],
'scyther': ['jynx', 'articuno', 'mew'],
'porygon': ['aerodactyl', 'mewtwo', 'kabuto'],
'poliwrath': ['machop', 'victreebel', 'seel', 'gengar',
'vaporeon'],
'dragonite': ['mewtwo', 'mew'],
'geodude': ['magneton', 'seel', 'cubone'],
'hitmonchan': [],
'lickitung': [],
'eevee': ['articuno', 'jolteon', 'flareon'],
'venomoth': [],
'moltres': ['dragonair'],
'metapod': [],
'horsea': ['moltres'],
'graveler': ['seaking', 'tangela', 'slowpoke'],
'kangaskhan': ['dragonite', 'kabuto', 'zapdos', 'moltres'],
'cloyster': ['mr.mime', 'marowak', 'kabutops', 'gengar',
'eevee'],
'machop': ['staryu', 'machamp', 'slowpoke', 'dodrio'],
'kakuna': ['scyther', 'zubat'],
'voltorb': ['porygon', 'pinsir', 'dragonite', 'jolteon',
'moltres'],
'ninetales': ['farfetchd', 'parasect', 'ponyta', 'mewtwo'],
'machamp': ['onix', 'marowak'],
'jynx': ['dratini', 'tauros', 'snorlax'],
'seel': ['haunter', 'kangaskhan'],
'dewgong': ['hitmonchan', 'pinsir', 'eevee'],
'growlithe': ['kabutops', 'shellder', 'farfetchd',
'chansey'],
'vaporeon': ['porygon', 'jolteon', 'aerodactyl'],
'haunter': ['koffing', 'rhyhorn', 'aerodactyl'],
'nidorina': [],
'alakazam': ['krabby', 'machoke', 'tauros', 'horsea'],
'venonat': ['magmar', 'drowzee'],
'nidoranmale': [],
'omastar': [],
'golbat': ['scyther', 'parasect', 'oddish'],
'parasect': ['persian', 'electabuzz'],
'squirtle': [],
'drowzee': [],
'chansey': ['pinsir', 'vaporeon'],
'slowbro': [],
'rhyhorn': ['staryu'],
'clefable': ['golbat', 'ditto'],
'goldeen': ['magikarp'],
'zubat': ['eevee', 'gyarados', 'dodrio', 'seadra'],
'doduo': ['shellder'],
'lapras': ['omanyte', 'omastar', 'mewtwo'],
'persian': ['golduck'],
'psyduck': ['abra'],
}
print("Using book1, can bulbasaur evolve to venusaur?")
print(can_evolve(book1, "bulbasaur", "venusaur"))
print("Using book1, can charmeleon evolve to blastoise?")
print(can_evolve(book1, "charmeleon", "blastoise"))
print("Using book2, can eevee evolve to articuno?")
print(can_evolve(book2, "eevee", "articuno"))
print("Using book3, can cubone evolve to charizard?")
print(can_evolve(book3, "cubone", "charizard"))
print("Using book3, can magikarp evolve to mewtwo?")
print(can_evolve(book3, "magikarp", "mewtwo"))
========
output
=====
>>>
Using book1, can bulbasaur evolve to venusaur?
True
Using book1, can charmeleon evolve to blastoise?
False
Using book2, can eevee evolve to articuno?
True
Using book3, can cubone evolve to charizard?
False
Using book3, can magikarp evolve to mewtwo?
True
>>>
PYTHON 3.0 HELP!!! book1 = { "squirtle" : ["wartortle"], "wartortle" : ["blastoise"], "blastoise" : [], "charmander"...
Create a new program in Mu and save it as ps4.5.3.py and take the code below and fix it as indicated in the comments: # In the Pokemon video game series, every Pokemon has six # stats: HP, Attack, Defense, Special Attack, Special Defense, # and Speed. # # Write a function called total_stats that will take as input # a list of dictionaries. Each dictionary will have seven # key-value pairs: # # - name: a Pokemon's name #...
In C++ Instructions Project 2: Gotta Catch ‘Em All Due: July 16 by Midnight For this project you will be designing and implementing a system, in C++, to catalogue Pokémon, their trainers, and the local Pokémon gyms. Your system should act as a database and allow the user to load in multiple tables of data, run basic queries on the data, and then store the data off for later use. Additionally, sample input files will not be uploaded to Canvas,...
I need help on these functions PYTHON 3. The information about
the functions is in the first two pics.
Scenario The Pokemon franchise consists of over 60 video games, 15 movies, several TV shows, a trading card game, and even a musical. It has been around for over two decades and at this point has fans of all ages. Because of this, people have become somewhat analytical about how they play the games. To help players of the Pokemon video...
C++ Double Question : 1ST. The printAllBooks function from Homework 5 was very useful, let’s do it again, but with an array of Book this time! Write a new printAllBooksfunction which will be useful to display the contents of your library. This function should: Accept two parameters in this order: array books: array of Book objects. int: number of books in the array (Note: this value might be less than the capacity of 50 books) This function does not return...
Help needed with Python 3: Dictionaries and Sets.
The problem is one that asks the user to create a completed
program that prompts the user for the name of a data file, and
reads the contents of that data file, then creates variables in a
form suitable for computing the answer to some questions.
The format should be in the same manner as the attached .py
file. All subsequent assignment details (.py and .csv files) can be
found at this...
Python
#complete the following lines of code wherever indicated. 5 question 20 points a piece #you may use your book and internet but no form of messaging or communication #QUESTION 1 #Read in the file exam_file.txt #Print to the console every other line #QUESTION 2 #Read in exam_file.txt #split file into words #write to a file called question2.out that contains 1 word per line (words can occur more than once) #QUESTION 3 # Print out all the Middle Initials in...
Python
#complete the following lines of code wherever indicated. 5 question 20 points a piece #you may use your book and internet but no form of messaging or communication #QUESTION 1 #Read in the file exam_file.txt #Print to the console every other line #QUESTION 2 #Read in exam_file.txt #split file into words #write to a file called question2.out that contains 1 word per line (words can occur more than once) #QUESTION 3 # Print out all the Middle Initials in...
A) Please implement a Python script to define a student class with the following attributes (instance attributes): cwid: student’s CWID first_name : student’s first name last_name: student’s last name gender: student’s gender gpa: student’s gpa Please make these attributes as private ones so they have to be accessed via getter/setter methods or property. For this purpose, please define a getter/setter method and property for each of the attributes. Another thing you need to do is to define a constructor that...
Python Programming (Just need the
Code)
Index.py
#Python 3.0
import re
import os
import collections
import time
#import other modules as needed
class index:
def __init__(self,path):
def buildIndex(self):
#function to read documents from
collection, tokenize and build the index with tokens
# implement additional
functionality to support methods 1 - 4
#use unique document integer
IDs
def exact_query(self, query_terms, k):
#function for exact top K retrieval (method 1)
#Returns...
Python program This assignment requires you to write a single large program. I have broken it into two parts below as a suggestion for how to approach writing the code. Please turn in one program file. Sentiment Analysis is a Big Data problem which seeks to determine the general attitude of a writer given some text they have written. For instance, we would like to have a program that could look at the text "The film was a breath of...