Skip to content

Add DOE chapter text extraction for entity analysis - #22

Open
kgdunn wants to merge 4 commits into
mainfrom
claude/entity-extraction-research-GrwY1
Open

Add DOE chapter text extraction for entity analysis#22
kgdunn wants to merge 4 commits into
mainfrom
claude/entity-extraction-research-GrwY1

Conversation

@kgdunn

@kgdunn kgdunn commented Dec 25, 2025

Copy link
Copy Markdown
Owner
  • Created Python script to extract text from Design of Experiments .rst files
  • Filtered out reStructuredText comments while preserving content
  • Extracted 38,009 words from 24 files for knowledge graph research

- Created Python script to extract text from Design of Experiments .rst files
- Filtered out reStructuredText comments while preserving content
- Extracted 38,009 words from 24 files for knowledge graph research
- Created comprehensive entity extraction using spaCy NLP
- Extracted 4,609 entities and 132 relationship types (original)
- Created refined extraction focused on DOE domain concepts
- Refined output: 1,189 entities and 38 relationship types
- Output format ready for Neo4j graph database import
- Includes metadata: file location, line numbers, context

Files:
- extract_entities_relationships.py: Original extraction script
- extract_entities_refined.py: Refined domain-focused extraction
- entities.json, relationships.json: Original comprehensive output
- entities_refined.json, relationships_refined.json: Clean domain output
- Created script to export entities and relationships as CSV
- entities_list.csv: 1,189 entities with occurrence counts
- relationships_list.csv: 38 relationships with examples
- Includes 'Keep' column for manual filtering
- Enables fine-tuning of knowledge graph content before Neo4j import
Implements strict canonical naming rules for knowledge graph:
- Canonical term mappings (e.g., "analysis of variance" → "ANOVA")
- Greek letters converted to words (α → "alpha")
- Stopwords removed from entity names
- Confidence scoring (0.0-1.0) for each extraction

Extraction results:
- 564 entity extractions from 51 unique canonical entities
- Average confidence: 0.80
- 16 structural relationships (IS_VARIANT_OF, ABBREVIATION_OF)

Top entities: main effect, experiment, factor, DOE, response variable,
interaction, least squares model, full factorial design

Files:
- extract_canonical_entities.py: Canonical entity extraction script
- extract_canonical_relationships.py: Relationship extraction script
- entities_canonical.json: JSON array of canonical entities
- relationships_canonical.json: JSON array of relationships

Ready for Neo4j graph database import.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants