Identify Stocks on Reddit with SpaCy (NER in Python)

jamescalam

James Briggs

Posted on March 15, 2021

Identify Stocks on Reddit with SpaCy (NER in Python)

We will learn how to process unstructured text data from Reddit and extract organization names so that any further analysis is automatically classified and results assigned to the correct stocks.

Organizations are mentioned in each subreddit in a variety of formats. Typically we will find two formats:

  • Organization name, eg Tesla/Tesla Motors
  • Ticker symbol, eg TSLA, tsla, or $TSLA

We also need to be able to differentiate between tickers and other abbreviations/slang -some of these are unclear like AI (AI can mean both artificial intelligence and refer to the ticker symbol for C3.ai).

So, we need a reasonable competent NER process to accurately classify our data.

💖 💪 🙅 🚩
jamescalam
James Briggs

Posted on March 15, 2021

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related