package for indexing text datasets using prime number factorisation for fast word frequency analysis
Project description
primetext
python package for indexing text datasets for fast word frequency analysis
Usage
from primetext import primetext
data = ["black cat on mat",
"black hat for you",
"cat sat on you"]
# initiate primetext
pt = primetext.primetext()
# indexing data
pt.index(data)
# finding words
recordsWithCat = pt.find(['cat'])
# returns boolean vector : [True,False,True]
recordsWithCatAndSat = pt.find(['cat','sat'])
# returns boolean vector : [False,False,True]
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
primetext-0.2.2.tar.gz
(1.7 kB
view details)
File details
Details for the file primetext-0.2.2.tar.gz
.
File metadata
- Download URL: primetext-0.2.2.tar.gz
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61d6f68edb5616c1d4aa72bce6077d975cf049232c608e3f05bc9c137fbce500 |
|
MD5 | 1e1755ceabb26e628b65b21ff261f2bd |
|
BLAKE2b-256 | beeb297b943fb68932f1147d3b2786d92e53b5e75f70087c50def361190f5144 |