Ling-144-winter2022-team-4 / team-project

0 stars 4 forks source link

add preprossessing + 1st filter #2

Open plcasipe opened 2 years ago

plcasipe commented 2 years ago

hey all i did the first filtter lol

berlinguist commented 2 years ago

Pamela, I think I might have accidentally induced a potential merge conflict in this file (sorry! I didn't see this was open!)

To fix this, go back to your branch, and on this file, all you'll need to do is go to your lines 87-93 and paste the following:

trueFalseList = []
for tweet in tweetList:
  whoPhrase = re.search("who \w+ \w+", tweet)
  if whoPhrase is None:
      trueFalseList.append(False)
  else:
      trueFalseList.append(any(whoPhrase.group(0) in t for t in tweetList))
print(trueFalseList)

Sorry about that! You should then be able to add this commit to the Pull Request