Minitour / BigDataHW4

MIT License
0 stars 0 forks source link

Write a function which extracts the stock symbol #6

Closed Minitour closed 5 years ago

Minitour commented 5 years ago

Write a python function, that is given a string, (tweet) will extract the stock symbol of a company (if found).

For example given the tweet

tweet = "GitHub finally has unlimited free repositories! Well done Microsoft!"
def symbol(tweet):
   # your logic here
   return (symbol, accuracy)
symb, acc = symbol(tweet)

Output should be MSFT

Minitour commented 5 years ago

https://github.com/Minitour/BigDataHW4/blob/cdff079a30870b6751b5f0429b5fe25ab6f32308/playground/symbols_algo/.ipynb_checkpoints/Stock%20Symbols%20Algorithm-checkpoint.ipynb