This was originally a term project for ITCS 5102 "Survey of Programming Languages" at UNCC, completed mostly to learn Scala. The original project was very limited, collecting stats from sportsdatabase.com, collecting Tweets referencing the a particular team, estimating the average sentiment over time, and plotting those stats.
For now, I'll focus on improving the sentimental data by using more reliable sources of data than Twitter and sportsdatabase.com, and building up a broader slice of metrics like margin-of-victory that are more useful for predicting performance. I hope to graph the results with something better than JFreeChart/ScalaChart as well.
-
Download the project or clone the repo with
git clone https://github.com/4102/Sentimental-Stats.git
-
Download and install sbt
-
To compile and run, navigate to the repo's root directory from the shell of your choice and enter
sbt run
...* To run with command-line arguments, wrap them in quotes like so:sbt "run arg1 arg2
- Download and install IntelliJ.
- Select
File > Open...
and navigate to the project if it doesn't detect it on start. - Install the Scala plugin when prompted, or do it manually.
- Add the
lib/
directory to your dependencies/classpath:
- Go to
File > Project Structure > Modules
and select theDependencies
tab - Select the
+
symbol, choosejars or directories
, and finally navigate tolib/
. Phew.- You have to follow the same process to add the individual jars in the root of
lib
, as IntelliJ can't identify them on its own. This is frustrating but necessary.
- You have to follow the same process to add the individual jars in the root of
- The project doesn't reliably compile or run in IntelliJ, so I strongly recommend using sbt for that instead.
Sentimental Stats uses: