https://github.com/sameetandpotatoes/smart-segmentation
https://github.com/sameetandpotatoes/smart-segmentation
chrome-extension rank segmentation vagrant
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sameetandpotatoes/smart-segmentation
- Owner: sameetandpotatoes
- License: apache-2.0
- Created: 2018-04-28T21:19:36.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-08T17:36:34.000Z (about 8 years ago)
- Last Synced: 2025-05-30T12:56:12.529Z (about 1 year ago)
- Topics: chrome-extension, rank, segmentation, vagrant
- Language: JavaScript
- Homepage: https://www.youtube.com/watch?v=GR1ZfF9D-wY
- Size: 495 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# smart-segmentation
Smart segmentation is about finding the boundaries between phrases within a text that are most important to users.
This is a chrome extension that enables smart segmentation of text and communicates with gensim in the backend to get segmentations and ranks them via a ranking function.
## Steps to reproduce
Follow the setup instructions and run the evaluation script
## Setup
The backend uses vagrant.
```
cd backend
vagrant up
vagrant ssh
vagrant@vagrant:~$ cd /vagrant
vagrant@vagrant:~$ ./devserver
```
To run the evaluation model, in vagrant, run:
```
>vagrant@vagrant:~$ python3 evalmodel.py
```
The UI uses node, and requires `npm`.
```
cd chrome_ext
npm install
npm start
```
`npm start` auto-watches for JS changes, and puts it in a build/dev folder. Open Chrome, and load the dev folder as a Chrome Extension.