-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added general description and Development Using Virtual Environment section * update readme with Docker section --------- Co-authored-by: HazalCiplak <[email protected]>
- Loading branch information
1 parent
5debab6
commit 45ef3d3
Showing
1 changed file
with
67 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,67 @@ | ||
# SpaCy Keyword Extraction | ||
# SpaCy Keyword Extraction API | ||
|
||
Provides an API to extract keywords from a text. It using [SpaCy](https://spacy.io/) to find noun chunks and some additional post-processing. | ||
|
||
## Development Using Virtual Environment | ||
|
||
### Pre-requisites (Virtual Environment) | ||
|
||
* Python, ideally using `pyenv` (see `.python-version`) | ||
|
||
### First Setup (Virtual Environment) | ||
|
||
```bash | ||
make dev-venv | ||
``` | ||
|
||
### Update Dependencies (Virtual Environment) | ||
|
||
```bash | ||
make dev-install | ||
``` | ||
|
||
### Run Tests (Virtual Environment) | ||
|
||
```bash | ||
make dev-test | ||
``` | ||
|
||
|
||
### Start Server (Virtual Environment) | ||
|
||
```bash | ||
make dev-start | ||
``` | ||
|
||
The server will be available on port 8000. | ||
|
||
You can access the API Docs via http://localhost:8000/docs | ||
|
||
|
||
## Development Using Docker | ||
|
||
### Pre-requisites (Docker) | ||
|
||
* Docker | ||
|
||
### Run Tests (Docker) | ||
|
||
```bash | ||
make build-dev test | ||
``` | ||
|
||
### Start Server (Docker) | ||
|
||
```bash | ||
make build start logs | ||
``` | ||
|
||
The server will be available on port 8000. | ||
|
||
You can access the API Docs via http://localhost:8000/docs | ||
|
||
### Stop Server (Docker) | ||
|
||
```bash | ||
make stop | ||
``` |