Skip to main content

"topicextractor" extracts topic keywords from documents based on 'TF-IDF' algorithm.

Usage

import topicextractor as te

sample_docs = [["doc1_str"], ["doc2_str"], ["doc3_str"] ....]

#extract noun counts from 'sample_docs' count_container = te.extract_noun_counts(sample_docs)

print(count_container) [{"a": 3, "b": 2}, {"c": 5, "d":3}, {"e": 7, "f": 12} ....]

#extract keywords for 'count_container[0]'(=the first docmunet in 'sample_docs') keywords = te.tfidf(count_container[0], count_container)

print(keywords) [("keyword1", 2.1104),("keyword2" 2.0012),("keyword3", 1.8892) ....]

Thanks, and please contact the author via e-mail for any comment.

Metadata

Release files for topicextractor 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for topicextractor 0.0.2
File Size Uploaded
topicextractor-0.0.2.tar.gz 2.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for topicextractor 0.0.2
File Interpreter ABI Platform
topicextractor-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 8.7 kB

Release files / topicextractor-0.0.2.tar.gz

Download URL topicextractor-0.0.2.tar.gz
Size 2.2 kB
Tags Source
SHA-256 checksum
How to use checksums
a6ad449f764810cb8acfa43570b100add8aa940ff3c280cfa6cd80a51684cddc
BLAKE2b-256 checksum
How to use checksums
9d032b7f09dedf8ee6bd477927043dc356ab409769d61002b1a80291572afd17
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.1

Release files / topicextractor-0.0.2-py3-none-any.whl

Download URL topicextractor-0.0.2-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
57b1d03ee998561705dd43a633cd991030d88f9a4222ac6c645da3b71dee5c42
BLAKE2b-256 checksum
How to use checksums
29dd8f966387184db4b86fc8fe5c4632ef9acb49c39c8a061a8b12803e551e12
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.1

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

0.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page