Entity Analysis
❖ NLP & Text Analysis

Entity & Semantic Analysis for SEO

v1.0 documentation

Extracts named entities, computes salience, maps semantic fields, and optionally extracts subject-verb-object triples for knowledge graph building.

URL inputFile inputText inputXLSX export
entity_analysis.py312 lines7 paramsPython 3.8+
Quick start
1

Install

terminal
pip install -r requirements.txt
2

Run

terminal
python entity_analysis.py --url https://example.com/page
terminal
python entity_analysis.py --file article.html --output entities.xlsx
terminal
python entity_analysis.py --text "Your content..." --graph entity_graph.html
3

Export

Add --output report.xlsx to save results as a spreadsheet.

Parameters
FlagDescription
--urlURL to analyze
--fileLocal HTML/text file
--textRaw text input
--outputSave entities as XLSX
--graphGenerate entity graph HTML
--skip-clustersEnable output mode (flag, no value needed)
--skip-triplesEnable output mode (flag, no value needed)
help
python entity_analysis.py --help
Use cases
Content quality audit
Writer evaluation
Client deliverable

Run across all your blog posts to score quality. Sort by score in the XLSX export, then prioritize rewrites for the lowest-scoring pages.

Before publishing freelance content, run this tool to check quality signals. Use specific metrics as concrete feedback for writers.

Include the analysis in your SEO audit report. Clients appreciate data-backed recommendations over subjective opinions.

Dependencies

Requires: beautifulsoup4, numpy, pandas, requests, scikit-learn, sentence-transformers, spacy. All included in requirements.txt.

Get all 154 Python SEO tools — $49

One-time payment. Lifetime access. No monthly fees.
Learn 25 tools and get 25% back. Earn from client work and get 50% back.

Get the full toolkit

AAIO Inc — aaioinc.com/tools/entity_analysis/