Skip to content

kurt213/csv-to-ngrams

Repository files navigation

CSV to N-grams demo (+ pyinstaller example)

A simple demo script I created for creating N grams.

Included an example input.csv. If you want to use your own data, you will want to make sure you are using the same format (.csv file, single column, no header).

Once libraries installed from requirements.txt, you can either run:

  • demo_script.py
  • demo_ngrams.ipynb - this notebook shows the step-by-step outputs from the main script.

It's also packageable into a single executable with pyinstaller. Just run:

pyinstaller --onefile --add-data "input.csv:." demo_script.py

input.csv - This sample data came from Crowdflower's Data for Everyone library

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published