How pierresenellart/theoremkb works
TheoremKB is a research toolkit for extracting mathematical results from scholarly articles and linking results across papers. In the Styling application, users manage papers and annotations through a web interface and REST API; the backend stores paper and annotation metadata and can run extractors. A separate analysis toolset derives result and reference links and builds a graph-oriented knowledge base. The README also identifies computer-vision and NLP extraction approaches, but their implementations are outside this tree. Connections below follow shown imports or calls; unsampled subsystems and API wiring are not inferred.
Main entry points: db.py Theorem database · server.py REST API · tkb.py Extractor registry · App.tsx Web application
Components 19
Paper annotation
- REST API
Styling/src/server.py - Paper records
Styling/src/lib/paper/__init__.py - Annotation layers
Styling/src/lib/annotations.py - Annotation classes
Styling/src/lib/classes/__init__.py
Document extraction
- Extractor registry
Styling/src/lib/tkb.py - CNN extraction
Styling/src/lib/extractors/cnn.py - CNN sequence extraction
Styling/src/lib/extractors/cnn1d.py - CRF extraction
Styling/src/lib/extractors/crf.py - Document features
Styling/tools/ml/features.py
Result knowledge base
- Theorem database
Styling/tools/theoremdb/db.py - Result bounding boxes
Styling/tools/theoremdb/results.py - Reference boxes
Styling/tools/theoremdb/links.py - Result link graph
Styling/tools/theoremdb/extract_graph.py - Knowledge-base workflow
Styling/tkb.py
Annotation interface
- Web application
Styling/src/web/src/App.tsx - API resources
Styling/src/web/src/resources.tsx - Paper annotation view
Styling/src/web/src/index/Paper.tsx - Paper search and list
Styling/src/web/src/index/ListPapers.tsx
Other components
- Research user
Connections 22
- Research user → Web application: uses
- Web application → Paper search and list: renders
Styling/src/web/src/App.tsx - Web application → Paper annotation view: renders
Styling/src/web/src/App.tsx - Web application → API resources: imports
- Paper annotation view → API resources: requests
- Research user → REST API: submits edits
- REST API → Extractor registry: invokes
Styling/src/server.py - REST API → Paper records: reads papers
Styling/src/server.py - REST API → Annotation layers: adds boxes
Styling/src/server.py - Extractor registry → CNN extraction: registers
Styling/src/lib/tkb.py - Extractor registry → CNN sequence extraction: registers
Styling/src/lib/tkb.py - Extractor registry → CRF extraction: registers
Styling/src/lib/tkb.py - CNN extraction → Annotation layers: creates layers
Styling/src/lib/extractors/cnn.py - CNN extraction → Annotation classes: uses labels
Styling/src/lib/extractors/cnn.py - Knowledge-base workflow → Theorem database: loads
Styling/tkb.py - Knowledge-base workflow → Result link graph: extracts links
Styling/tkb.py - Knowledge-base workflow → Document features: builds features
Styling/tkb.py - Result link graph → Theorem database: loads papers
Styling/tools/theoremdb/extract_graph.py - Result link graph → Document features: uses features
Styling/tools/theoremdb/extract_graph.py - Theorem database → Result bounding boxes: parses results
Styling/tools/theoremdb/db.py - Theorem database → Reference boxes: parses references
Styling/tools/theoremdb/db.py - Document features → Theorem database: reads records
Styling/tools/ml/features.py