Skip to main content

Use the ChatNoir search engine in PyTerrier.

Project description

PyPi CI Code coverage Python Google Colab Issues Commit activity Downloads License

🔍 chatnoir-pyterrier

Use the ChatNoir search engine in PyTerrier. Powered by the chatnoir-api package.

Installation

pip install chatnoir-pyterrier

Usage

from chatnoir_pyterrier import ChatNoirRetrieve

api_key: str = "<API_KEY>"
chatnoir = ChatNoirRetrieve(api_key)

# Use PyTerrier functions like with BatchRetrieve.
chatnoir.search("python library")

Also, check out the sample notebook or open it in Google Colab.

Citation

If you use this package, please cite the paper from the ChatNoir authors. You can use the following BibTeX information for citation:

@InProceedings{bevendorff:2018,
  address =               {Berlin Heidelberg New York},
  author =                {Janek Bevendorff and Benno Stein and Matthias Hagen and Martin Potthast},
  booktitle =             {Advances in Information Retrieval. 40th European Conference on IR Research (ECIR 2018)},
  editor =                {Leif Azzopardi and Allan Hanbury and Gabriella Pasi and Benjamin Piwowarski},
  ids =                   {potthast:2018c,stein:2018c},
  month =                 mar,
  publisher =             {Springer},
  series =                {Lecture Notes in Computer Science},
  site =                  {Grenoble, France},
  title =                 {{Elastic ChatNoir: Search Engine for the ClueWeb and the Common Crawl}},
  year =                  2018
}

Development

To build and develop this package you need to install the build package:

pip install build

Installation

Install package dependencies:

pip install -e .

Testing

Install test dependencies:

pip install -e .[test]

Verify your changes against the test suite to verify.

flake8 chatnoir_pyterrier examples tests
pylint -E chatnoir_pyterrier examples tests
CHATNOIR_API_KEY="<API_KEY>" pytest chatnoir_pyterrier examples tests

Please also add tests for your newly developed code.

Build wheels

Wheels for this package can be built by:

python -m build

License

This repository is released under the MIT license.

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

chatnoir-pyterrier-1.0.1.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

chatnoir_pyterrier-1.0.1-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file chatnoir-pyterrier-1.0.1.tar.gz.

File metadata

  • Download URL: chatnoir-pyterrier-1.0.1.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

File hashes

Hashes for chatnoir-pyterrier-1.0.1.tar.gz
Algorithm Hash digest
SHA256 aaa2c766737ffaa09b1043bad42e2a1bd4a196d063c82217d134c956aa5e9dfd
MD5 5be2d598bed46c6da2950c4fb7b68cfc
BLAKE2b-256 97af40932079fdeca571cd3b088d90d8f6ee027ef3d0a7947c63d80704026d0e

See more details on using hashes here.

File details

Details for the file chatnoir_pyterrier-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: chatnoir_pyterrier-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

File hashes

Hashes for chatnoir_pyterrier-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 80830dedfac34942d7b09e3b89a3bd1f9c539ff307d65b60b08778ba207c1b7b
MD5 4a5929a24ce26d2457b5b4f9c1160167
BLAKE2b-256 8442fd4255356a6e6ba81509c2cdb394293d486f3099f0fa305d0a4c4506e80f

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