Skip to content
 
 

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ParsePoint NLP API

A Natural Language Processing API that tokenizes text and provides Part of Speech (POS) data, similar to Google's NLP API.

Features

  • Text tokenization
  • Part of Speech (POS) tagging
  • Lemmatization
  • Dependency parsing
  • Sentence segmentation
  • Interactive demo UI

Setup

Prerequisites

  • Python 3.8+
  • Virtual environment (included)

Installation

  1. Activate the virtual environment:
source venv/bin/activate  # On Linux/Mac
# OR
venv\Scripts\activate     # On Windows
  1. The required packages are already installed in the virtual environment:
    • FastAPI
    • uvicorn
    • spaCy
    • python-multipart

Running the Application

  1. Start the server:
python -m app.main
  1. Open your browser and navigate to:

API Endpoints

POST /api/process

Process text and return tokens with POS data.

Request Body:

{
  "text": "Your text to analyze here."
}

Response:

{
  "tokens": [
    {
      "text": "Your",
      "lemma": "your",
      "pos": "PRON",
      "tag": "PRP$",
      "dep": "poss",
      "is_stop": true,
      "is_alpha": true,
      "is_punct": false
    },
    ...
  ],
  "sentences": [
    "Your text to analyze here."
  ],
  "text": "Your text to analyze here."
}

POST /api/process-form

Same as above but accepts form data instead of JSON.

Development

The project structure is organized as follows:

parsepoint/
├── venv/                  # Virtual environment
├── app/
│   ├── main.py            # Application entry point
│   ├── api/
│   │   └── nlp_api.py     # API endpoints
│   ├── nlp/
│   │   └── nlp_service.py # NLP processing logic
│   ├── static/
│   │   └── css/           # CSS files
│   └── templates/
│       └── index.html     # Demo UI template
└── README.md              # This file

About

NLP API

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages