MCPcopy Index your code
hub / github.com/BrambleXu/news-graph

github.com/BrambleXu/news-graph @v1.0.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.0.0 ↗ · + Follow
25 symbols 57 edges 4 files 16 documented · 64%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

News Graph

Key information extration from text and graph visilization. Inspired by TextGrapher.

Project Introduction

How to represent a text in a simple way is a chanllenge topic. This peoject try to extraction key information from the text by NLP methods, which contain NER extraction, relation detection, keywords extraction, frequencies words extraction. And finally show the key information in a graph way.

How to use

from news_graph import NewsMining
content = 'Input you text here'
Miner = NewsMining()
Miner.main(content)

This will generate the graph.html.

Example Demo

1) Blockbuster The Wandering Earth image1

2) Tokyo Marathon 2019 Elite Field image2

3) EVEN ANONYMOUS CODERS LEAVE FINGERPRINTS image3

Core symbols most depended-on inside this repo

create_page
called by 1
graph_show.py
create_html
called by 1
graph_show.py
clean_spaces
called by 1
news_graph.py
remove_noisy
called by 1
news_graph.py
collect_ners
called by 1
news_graph.py
syntax_parse
called by 1
news_graph.py
build_parse_chile_dict
called by 1
news_graph.py
complete_VOB
called by 1
news_graph.py

Shape

Method 21
Class 4

Languages

Python100%

Modules by API surface

news_graph.py14 symbols
textrank.py7 symbols
graph_show.py4 symbols

For agents

$ claude mcp add news-graph \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page