Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bendichter/tenseflow
Change the tense of any text
https://github.com/bendichter/tenseflow
Last synced: 3 days ago
JSON representation
Change the tense of any text
- Host: GitHub
- URL: https://github.com/bendichter/tenseflow
- Owner: bendichter
- License: mit
- Created: 2017-03-25T21:07:11.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-04-16T23:39:29.000Z (7 months ago)
- Last Synced: 2024-10-30T14:58:23.366Z (14 days ago)
- Language: Jupyter Notebook
- Size: 113 KB
- Stars: 41
- Watchers: 4
- Forks: 12
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Changelog: change_tense
- License: LICENSE
Awesome Lists containing this project
README
# tenseflow
tenseflow automatically changes the tense of any English text.## Features
- change to `'past'`, `'present'`, or `'future'` tense
- includes web app## Installation
Unfortunately, the package is only compatible with python 2.7 and 3.6.
Install this package
```
git clone https://github.com/bendichter/tenseflow.git
cd tenseflow
pip install .
```
download default English SpaCy model
```
sudo python -m spacy download en
```## Usage
Basic usage
```python
from tenseflow import change_tensechange_tense('I will go to the store.', 'past')
u'I went to the store.'
```Run web app
```
export FLASK_APP=app.py
flask run
```## Testing
[![Build Status](https://travis-ci.org/bendichter/tenseflow.png?branch=master)](https://travis-ci.org/bendichter/tenseflow)To test, install pytest with `pip install pytest`, then run `pytest` from within the tenseflow directory.