excel-ngrams

An app to output n-grams from column in Excel spreadsheet


Keywords
Excel, n-grams
License
MIT
Install
pip install excel-ngrams==0.2.0

Documentation

Tests

codecov

PyPI

The Excel Ngrams Project

A project to analyse a column of text in an Excel document and return a CSV file with the most common ngrams from that text. Output file is returned to the same directory as the input file.

You can choose the maximum n-gram length, and maximum number of results (rows) returned. The app defaults to looking for a column named'Keyword' but any column name can be passed in as an argument.

The column of terms to analyse must be the longest (or only) column in the document to prevent the addition of NaN as a placeholder in final cells, which will cause errors.

Words are tokenised with Spacy and ngrams are generated with NLTK.

Installation

To install the Excel Ngrams Project, run this command in your terminal:

$ pip install excel-ngrams

Excel-ngrams-usage