Skip to content

Commit

Permalink
chore: add imports to __init__.py for easier access to key modules
Browse files Browse the repository at this point in the history
  • Loading branch information
LucieNvz committed Oct 22, 2024
1 parent e3c45f1 commit c1fb155
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ To install the Saga LLM Evaluation ML library, use the following command:
If you want to use the Scorer class, you need to install the following dependencies:

.. code-block:: bash
pip install "saga-llm-evaluation[scorer]"
However, beware that this will downgrade the version of the `pandas` library to 1.5.3 if you have a higher version installed. This is due to a compatibility issue with the `pandas` library.
Expand Down
1 change: 1 addition & 0 deletions docs/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ The Scorer is a class that allows you to run multiple metrics at once. The metri
If you want to use the Scorer class, you need to install the following dependencies:

.. code-block:: bash
pip install "saga-llm-evaluation[scorer]"
However, beware that this will downgrade the version of the `pandas` library to 1.5.3 if you have a higher version installed. This is due to a compatibility issue with the `pandas` library.
Expand Down
11 changes: 11 additions & 0 deletions saga_llm_evaluation/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,12 @@
from elemeta.nlp import english_punctuations, english_stopwords, extended_punctuations
from elemeta.nlp.extractors.high_level import *
from elemeta.nlp.extractors.low_level.abstract_metafeature_extractor import (
AbstractMetafeatureExtractor,
)

from .helpers.embedding_metrics import MAUVE, BERTScore
from .helpers.language_metrics import BLEURTScore, QSquared
from .helpers.llm_metrics import GEval, GPTScore, SelfCheckGPT
from .helpers.utils import MetadataExtractor, get_llama_model

__version__ = "0.12.1"

0 comments on commit c1fb155

Please sign in to comment.