Skip to main content

Wall Street Social

Is an open source piece of software that is designed to allow anyone to quickly get familiar with the basics of textual analysis. It features a preconfigured database schema, preconfigured pipelines to fill the database with reddit comments, and a pretrained named entity recognition model that is used to pull out what stocks are being mentioned in a post.

Getting Starting

This project model doesn't fit the pypi size specifications, to get this project working you will need the these steps.

pypi WallStreetBets

Download Model here

unzip anywhere

from WallStreetSocial import helpers

# Uses model to find ticks in the data comment table
helpers.validate_model('C:Projects\\WallStreetSocial\\wsb_ner')

# Fetches Comments and Posts from a subreddit between two dates
helpers.run("WallStreetBets", start="2019-01-03", end="2019-02-04")


symbol = helpers.SummariseBase(symbol="AAPL")
symbol.display_stats()

About the ML Model

The named entity recognition model in use is a compact spaCy model which has been trained on wallstreetbets specific data. The model has been trained in two parts: first, Gensim was used to create the word vectors. Word vectors are basically multidimensional representations of words in algebraic space that help the model determine things like word similarity. It helps give the model some form of contextual awareness of the words it is encountering. The model is then trained specifically on data from reddit. The data consists of thousands of comments that have labeled stocks and their respective positions in the text. For a visual representation of the word vectors, please see https://www.kaggle.com/johnhutton/visualization-of-wallstreetbets-word-vectors

Metadata

Release files for WallStreetSocial 1.0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for WallStreetSocial 1.0.0.4
File Size Uploaded
WallStreetSocial-1.0.0.4.tar.gz 6.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for WallStreetSocial 1.0.0.4
File Interpreter ABI Platform
WallStreetSocial-1.0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 14.7 kB

Release files / WallStreetSocial-1.0.0.4.tar.gz

Download URL WallStreetSocial-1.0.0.4.tar.gz
Size 6.8 kB
Tags Source
SHA-256 checksum
How to use checksums
0d2e239fd2949fe3ac68d5e787a8d1edda684528998ff1e57f90f20d74f92b93
BLAKE2b-256 checksum
How to use checksums
d2c7c1f56b18f0493f68409d2d8af9e6bf078610b2da83de1baf14fa03b667bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.6

Release files / WallStreetSocial-1.0.0.4-py3-none-any.whl

Download URL WallStreetSocial-1.0.0.4-py3-none-any.whl
Size 7.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a6852b1add219feb6529f79cacdf0b2777923fd9c404e83f404a3963281a2546
BLAKE2b-256 checksum
How to use checksums
d7033fd83a652bf3dd2da6c59adbe089f570dd00ff845eb3f6b14b1221bc886a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.6

Release history Release notifications | RSS feed

This release

1.0.0.4 This release

2 release files

0.4

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page