QueryIntent-Entity-NER: Query Intent and Entity Extraction for SEO

Type: Academic | Domain: SEO, NLP
Hugging Face: syeedalireza/query-intent-entity-ner

Multi-task: query intent classification and named-entity extraction for search content planning.

Author

Alireza Aminzadeh

Problem

Understanding intent (informational, navigational, transactional) and key entities in queries improves content and keyword strategy.

Approach

  • Intent: Multi-class (e.g. informational / navigational / transactional / commercial).
  • Entities: NER (ORG, PRODUCT, LOC, etc.) from query text.
  • Models: Hugging Face transformer (e.g. BERT) for sequence classification + token classification, or pipeline with spaCy/transformers.

Tech Stack

Category Tools
NLP Hugging Face Transformers, tokenizers
NER spaCy (optional), transformers NER head
ML PyTorch, scikit-learn
Data pandas, NumPy

Setup

pip install -r requirements.txt

Usage

python train.py
python inference.py --query "best running shoes for flat feet"

Project structure

03_query-intent-entity-ner/
β”œβ”€β”€ config.py
β”œβ”€β”€ train.py           # BERT (or HF) sequence classification
β”œβ”€β”€ inference.py       # Single query or batch CSV; CPU/GPU auto
β”œβ”€β”€ requirements.txt
β”œβ”€β”€ .env.example
β”œβ”€β”€ data/
β”‚   └── query_intent.csv   # Sample: query, intent
└── models/

Data

  • Sample data (included): data/query_intent.csv β€” columns: query, intent.
  • Intent labels: informational, navigational, transactional, commercial.
  • Set DATA_PATH in .env if using another file.

License

MIT.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Space using syeedalireza/query-intent-entity-ner 1