IdeaCredIdeaCred

kyahikaru/scholarly-knowledge-graph

30

End-to-end NLP engineering pipeline that extracts entities and relations from research papers and constructs a Neo4j knowledge graph with evaluation and link prediction.

What's novel

End-to-end NLP engineering pipeline that extracts entities and relations from research papers and constructs a Neo4j knowledge graph with evaluation and link prediction.

Code Analysis

25 files read · 5 rounds

A linear pipeline that extracts text from PDFs, runs NER (rule-based or transformer), normalizes entities by frequency, creates co-occurrence relations, writes them to Neo4j with a hardcoded edge type, and reports fake link prediction scores (always 1.0) while computing Node2Vec embeddings that are

Strengths

Clean dataclass-based data model and a well-organized modular pipeline with factory patterns for swapping NER/relation backends. The code is readable, well-logged with timing, and the overall stage-by-stage structure is easy to follow.

Weaknesses

The link prediction evaluation is a hardcoded stub that always returns perfect scores, the Node2Vec embeddings are computed but never consumed, the Neo4j writer ignores actual relation types and hardcodes 'USED_ON', the transformer relation extractor would crash at runtime, and there are zero tests. The README describes a sophisticated ML pipeline with graph analytics that the code does not actually implement.

Score Breakdown

Innovation
4 (25%)
Craft
27 (35%)
Traction
5 (15%)
Scope
28 (25%)

Signal breakdown

Innovation

Not Fork+1
Code Novelty+0
Concept Novelty+1

Craft

Ci-1
Tests-1
Polish+1
Releases+0
Has License+0
Code Quality+12
Readme Quality+15
Recent Activity+7
Structure Quality+5
Commit Consistency+2
Has Dependency Mgmt+5

Traction

Forks+0
Stars+6
Hn Points+0
Watchers+3
Early Traction+0
Devto Reactions+0
Community Contribs+0

Scope

Commits+8
Languages+3
Subsystems+13
Bloat Penalty+0
Completeness+6
Contributors+5
Authored Files+12
Readme Code Match+3
Architecture Depth+5
Implementation Depth+8

Evidence

Commits

145

Contributors

1

Files

54

Active weeks

4

TestsCI/CDREADMELicenseContributing

Repository

Language

Python

Stars

2

Forks

0

License