Skip to content

Nkeramov/ner_analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Name Entity Recognition (NER) analyzer

Python Checked with mypy license

This project is a simple example for NER tagging task in NLP. Based on Natasha library.

You can enter text and get text with tagged entities. Standart named entities are extracted: names, locations, organizations.

The web server is based on Flask framework. By default the application will run on port 5000.

Setting up and running the project 🚀

Prerequisites

Clone repository:

git clone https://github.com/Nkeramov/ner_analyzer.git

Switch to repo directory:

cd ner_analyzer

Traditional method with venv and pip

Create and activate virtual environment:

python -m venv .venv 
source .venv/bin/activate       # Linux/Mac
# or
./venv/Scripts/activate         # Windows

Install dependencies and run:

pip install -r requirements.txt
python main.py

Modern method with uv

Install dependencies and create virtual environment automatically:

uv sync

Run the project (virtual environment is handled automatically):

uv run python main.py

Or with explicit activation:

source .venv/bin/activate       # After uv sync
python main.py

🤝 Contributing

If you want to contribute, please follow these steps:

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix.
  3. Make your changes and commit them.
  4. Push to your fork and create a pull request.

📝 License

This project is licensed under the MIT License. See the LICENSE file for details.

About

NER analyzing tool example on Flask and Natasha

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published