Skip to content

News Article Analysis

See examples/news_article_analysis.py for the full source.

This example demonstrates:

  1. Tokenizing a news article with lemmatization
  2. Removing stopwords
  3. Building a co-occurrence graph with window=3
  4. Extracting the backbone
  5. Finding top nodes by degree centrality
  6. Building semantic graphs with CountVectorizer and TF-IDF