Concept-Search
For source code
This the my Github repo. Contact me for support and PRs are welcome.
Usage
- Pip install the package.
$ pip3 install smart-search
- NOTE : Please have the pickle file in the same folder as the python script in which you will use our pip package.
Here i use the glove.6B.zip file from Standfords Github repository from the hyperlink.
Syntax
- Import the library.
>> import smart_search
- Create an object of the class, smart_search.model(). Say,
functioncaller.
>> functioncaller = smart_search.model()
- Now to convert a pdf to a list of lists containing page.no and words after stop word removal, we use the built in function
getting_list_of_words(). This accepts 1 argument, i.e the path to the pdf and returns the required list to be fed to the model.
>> pdf_list = functioncaller.getting_list_of_words('path to your pdf')
- Pass this list to the model along with the word you want to get the search result of using the
perform_skip()function. This accepts 2 variables, i.e the list produced by the previous function and the word you want to search for and retuns the top 5 relevant search locations of the word you searched for.
>> location[0:5] = perform_skip(pdf_list, input_word)
- You can use subprocesses library of python to navigate to the page if you want to.
LICENSE
Metadata
Release files for smart-search 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| smart_search-0.0.5.tar.gz | 3.1 kB | Without provenance | Details for smart_search-0.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| smart_search-0.0.5-py3-none-any.whl | Python 3 | none | any | Details for smart_search-0.0.5-py3-none-any.whl |
Total release size: 7.2 kB
Release files / smart_search-0.0.5.tar.gz
| Download URL | smart_search-0.0.5.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7aa5400f64a17116784d2204245201728eeac524b8e58479729d1658f69fe89b
|
|
BLAKE2b-256 checksum How to use checksums |
f1f42189366bbf67e1e86408da4628520334a742eb8c7b22503cb8d47608630f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.8
|
Release files / smart_search-0.0.5-py3-none-any.whl
| Download URL | smart_search-0.0.5-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
11b4ada4f75ae9d16bee09afd30609f15e871daba94eb62d55af9ffab328240f
|
|
BLAKE2b-256 checksum How to use checksums |
4ace8f6882ccfae35f4f4ceb4abdb578513636b0b69da4bceaadc4a159e8ed0a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.8
|
Security for smart-search 0.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.