Skip to main content

Topic modeling with text networks

Project description

Topic Network - topic modeling with text networks
--------

This package builds a text network out of a list of strings, picks the most important words on the basis of betweenness centrality measure, and performs community detection to group the words into topic networks and return the groups. The methods used are language-agnostic, meaning that you can perform the topic modeling on any text in any language.
The package uses NetworkX to build the network and perform the necessary calculations.

To install the package, use::

>>> pip install topicnetwork

To find the topics, simply use::

>>> import topicnetwork
>>> topics = topicnetwork.find_topics(list_of_strings)

For best results, use a text without punctuation and stopwords, and words converted to lowercase. You can perform the cleaning on your English texts with:

>>> text = topicnetwork.clean(list_of_strings)

Package written and maintained by Michal Pikusa (pikusa.michal@gmail.com)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

topicnetwork-0.1.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

topicnetwork-0.1-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file topicnetwork-0.1.tar.gz.

File metadata

  • Download URL: topicnetwork-0.1.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.5

File hashes

Hashes for topicnetwork-0.1.tar.gz
Algorithm Hash digest
SHA256 9ce13c59e6a173f0042f2a39fd31580a2f6e5fbad46de925e5f669aea81b4080
MD5 135d925a7b8bb24340055acba40d3a14
BLAKE2b-256 0e4b0a009e1cacf4bac29e644213f217338062ec4926534883d85af420caf942

See more details on using hashes here.

File details

Details for the file topicnetwork-0.1-py3-none-any.whl.

File metadata

  • Download URL: topicnetwork-0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.5

File hashes

Hashes for topicnetwork-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8acc429789bca5e7306cdcb388a1ac3ad4f2ab0b28599ebc5b8028963830f854
MD5 1f8b0ab2bb0acedc09add56e15943ba4
BLAKE2b-256 e0da2cf6622863c03b22a4ee1804137d8547bbab6e8cd062bd0d600ca0284fdf

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page