Skip to content

A visualized text mining and analysis tool for student markdown reflection documents based on Natural language processing in the Dept of CS at Allegheny College.

License

Notifications You must be signed in to change notification settings

donizk/GatorMiner

 
 

Repository files navigation

GatorMiner

Build Status codecov Built with spaCy Built with Streamlit

An automated text-mining tool written in Python to measure the technical responsibility of students in computer science courses, being used to analyze students' markdown reflection documents and five questions survey based on Natural Language Processing in the Department of Computer Science at Allegheny College.

Installation

You can clone the repository by running the following command:

git clone git@github.com:Allegheny-Ethical-CS/GatorMiner.git

cd into the project root folder:

cd GatorMiner

This program uses Pipenv for dependency management.

  • If needed, install and upgrade the pipenv with pip:

    pip install pipenv -U
  • To create a default virtual environment and use the program:

    pipenv install

GatorMiner relies on en_core_web_sm and/or en_core_web_md, English models trained on written web text (blogs, news, comments) that includes vocabulary, vectors, syntax and entities.

To install the pre-trained model, you can run (one of) the following commands:

pipenv run python -m spacy download en_core_web_sm
pipenv run python -m spacy download en_core_web_md

Web Interface

GatorMiner is mainly developed on its web interface with Streamlit in order to provide fast text analysis and visualizations.

In order to run the Streamlit interface, type and execute the following command in your terminal:

pipenv run streamlit run streamlit_web.py

You then will see something like this in your terminal window:

You can now view your Streamlit app in your browser.

Local URL: http://localhost:8501
Network URL: http://xxx.xxx.x.x:8501

The web interface will be automatically opened in your browser:

browser

Data Retreiving

There are currently two ways to import text data for analysis: through local file system or AWS DynamoDB.

Local File System

You can type in the path(s) to the directorie(s) that hold reflection markdown documents. You are welcome to try the tool with the sample documents we provided in resources, for example:

resources/sample_md_reflections/lab1, resources/sample_md_reflections/lab2, resources/sample_md_reflections/lab3

AWS

Retrieving reflection documents from AWS is a feature integrated with the use of GatorGrader where students' markdown reflection documents are being collected and stored inside the a pre-configured DynamoDB database. In order to use this feature, you will need to have some credential tokens (listed below) stored as environment variables:

export GATOR_ENDPOINT=<Your Endpoint>
export GATOR_API_KEY=<Your API Key>
export AWS_ACCESS_KEY_ID=<Your Access Key ID>
export AWS_SECRET_ACCESS_KEY=<Your Secret Access Key>

It is likely that you already have these prepared when using GatorMiner in conjunction with GatorGrader, since these would already be exported when setting up the AWS services. You can read more about setting up an AWS service with GatorGrader here.

Once the documents are successfully imported, you can then navigate through the select box in the sidebar to view the text analysis:

select box

Reflection Documents

We are using markdown format for the student reflection documents. Its organized structure allows us to parse and perform text analysis easily. With that said, there are few requirements for the reflection document before it could be seamlessly processed and analyzed with GatorMiner. A template is provided within the repo. Note that the headers with the assignment's and student's ID/name are required. GatorMiner is set in default to take the first header as assignment name and the second header as student name.

You can also check out the sample json report to see the format of json reports GatorMiner gathers from AWS.

Analysis

frequency

sentiment

similarity

topic

Contribution

We are excited that you would take the time to contribute to GatorMiner! We have provided a contributing guideline that will help you effectively get started and make contributions to the project.

About

A visualized text mining and analysis tool for student markdown reflection documents based on Natural language processing in the Dept of CS at Allegheny College.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%