-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ca03523
commit e00777f
Showing
8 changed files
with
107 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
.. _glossary: | ||
|
||
Glossary | ||
======== | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
.. _orgintropage: | ||
|
||
Introduction | ||
============ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,70 @@ | ||
Python Client | ||
============= | ||
.. todo:: Add a nice introductory text | ||
For programatic access to TIRA, we provide a python API, the "Python Client", which serves two use-cases: | ||
|
||
* :ref:`modindex` | ||
(1) Interfacing with the TIRA platform | ||
(2) Integrating with third party APIs (e.g., ir-datasets) that would not work otherwise due to TIRA's sandbox. | ||
|
||
.. important:: TIRA sandboxes all the evaluation runs to avoid publicizing evaluation data and maintain comparability | ||
beyond the initial shared task. For you, this means that you can't access arbitrary external resources. Since you | ||
should not, of course, have to abstain from using `hugging-face`, `ìr_datasets` or other crucial dependencies, we | ||
integrated some of these into the sandbox. | ||
|
||
tira.io\_utils module | ||
--------------------- | ||
.. toctree:: | ||
|
||
.. automodule:: tira.io_utils | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
python-client/tiraclient | ||
python-client/pyterrier | ||
python-client/ir-datasets | ||
|
||
tira.ir\_datasets\_util module | ||
------------------------------ | ||
|
||
.. automodule:: tira.ir_datasets_util | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
.. | ||
* :ref:`modindex` | ||
tira.pyterrier\_integration module | ||
---------------------------------- | ||
|
||
.. automodule:: tira.pyterrier_integration | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
tira.io\_utils module | ||
--------------------- | ||
|
||
tira.pyterrier\_util module | ||
--------------------------- | ||
.. automodule:: tira.io_utils | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
.. automodule:: tira.pyterrier_util | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
tira.ir\_datasets\_util module | ||
------------------------------ | ||
|
||
tira.third\_party\_integrations module | ||
-------------------------------------- | ||
.. automodule:: tira.ir_datasets_util | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
.. automodule:: tira.third_party_integrations | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
tira.pyterrier\_integration module | ||
---------------------------------- | ||
|
||
Module contents | ||
--------------- | ||
.. automodule:: tira.pyterrier_integration | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
.. automodule:: tira | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
tira.pyterrier\_util module | ||
--------------------------- | ||
|
||
.. automodule:: tira.pyterrier_util | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
tira.third\_party\_integrations module | ||
-------------------------------------- | ||
|
||
.. automodule:: tira.third_party_integrations | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
Module contents | ||
--------------- | ||
|
||
.. automodule:: tira | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
IR-Datasets Integration | ||
======================= | ||
|
||
The **only** thing you need to know about TIRA's ir_datasets integration as a user is to replace your import of | ||
ir_datasets like so: | ||
|
||
.. code-block:: diff | ||
- import ir_datasets | ||
+ from tira.third_party_integrations import ir_datasets | ||
Now you can work with ir_datasets **exactly** like you usually would. The entire rest of this page only contains | ||
background information on what happens behind the scenes and you can safely skip it if you are not interested. | ||
|
||
|
||
.. rubric:: Behind the Scenes | ||
|
||
.. todo:: TODO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Pyterrier Integration | ||
===================== | ||
|
||
.. code-block:: diff | ||
- import pyterrier as pt | ||
- if not pt.started(): | ||
- pt.init() | ||
+ from tira.third_party_integrations import ensure_pyterrier_is_loaded | ||
+ ensure_pyterrier_is_loaded() | ||
+ import pyterrier as pt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
TIRA Client | ||
=========== | ||
|
||
.. autoclass:: tira.tira_client.TiraClient | ||
:members: | ||
:undoc-members: |