Use the ChatNoir search engine in PyTerrier.
Project description
🔍 chatnoir-pyterrier
Use the ChatNoir search engine in PyTerrier.
Powered by the chatnoir-api
package.
Installation
Install the package from PyPI:
pip install chatnoir-pyterrier
Usage
You can use the ChatNoirRetrieve
PyTerrier module in any PyTerrier pipeline, like you would do with BatchRetrieve
.
from chatnoir_pyterrier import ChatNoirRetrieve
api_key: str = "<API_KEY>"
chatnoir = ChatNoirRetrieve(api_key)
chatnoir.search("python library")
Please check out our sample notebook or open it in Google Colab.
Touché 2023
Are you participating in Touché 2023 task 1 or task 2? We've prepared a sample notebook to show you how to retrieve from the ClueWeb22. Get started by opening 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>" CHATNOIR_API_KEY_STAGING="<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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file chatnoir-pyterrier-2.0.1.tar.gz
.
File metadata
- Download URL: chatnoir-pyterrier-2.0.1.tar.gz
- Upload date:
- Size: 24.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8acad14c54399cbb53cebcd3fbc1822ae2d5de13b1133d614113343a3a6a398 |
|
MD5 | 0e19a25fbd2162986992556e0aaf0114 |
|
BLAKE2b-256 | 87ad43d7c4902ba6ea0fb1ed44c046e2c769703ebd2dd4a9d0689080f4894b79 |
File details
Details for the file chatnoir_pyterrier-2.0.1-py3-none-any.whl
.
File metadata
- Download URL: chatnoir_pyterrier-2.0.1-py3-none-any.whl
- Upload date:
- Size: 21.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7004189fc3f5c5021e7d541a69dd7643e2aa0f644415b10021661632d1e4f4f7 |
|
MD5 | cc2d0af6b5b191217ca6c24d758c27a1 |
|
BLAKE2b-256 | eada670e9400b03e303cce38becd0dbc29a38ff3c04d8e79842aba73f1d87113 |