OpenSourceCornell / Spring_2018_WICC_OSC

The Git Workshop for the Spring 2018 WICC and Open Source Cornell Introduction to Open Source event.
1 stars 21 forks source link

text_score #53

Open alexanderGGreenberg opened 6 years ago

alexanderGGreenberg commented 6 years ago

Implement the funciton in src/text_score.py with the following specification:

As a firm Silicon Valley fanatic, you have been inspired by Jian Yang's hot dog/not hot dog classifier, and decided to build your own classifier... but for text! Your objective is to take a body of text, and two word inputs, and return a score count. Every time the first string occurs in the text, you will increment the score count, and every time the second string occurs, you will decrement the score count. Return the final score. Example: input: ("I love to eat hot dogs for breakfast, hot dogs for lunch, and even for dinner!", "hot", "for") output: -1

thejxp commented 6 years ago

🙋🏻

ammar0211 commented 6 years ago

I'm on it.