semvec/pypi-packages huggingface dataset:
Bourguiba 1.0.9
A command line generator based on user input
Requires Python: >=3.6

# Bourguiba

Bourguiba is a Python library that generates commands based on descriptions using the T5-small model from Meta AI.

## Installation

You can install Bourguiba using pip:

```
pip install bourguiba
```

During installation, the T5-small model will be downloaded and stored in your home directory under `.bourguiba_model`.

## Usage

After installation, you can use Bourguiba from the command line:

```
bourguiba "create a Python file"
```

This will generate a command based on the given description.

You can also use Bourguiba in your Python scripts:

```python
from bourguiba import Bourguiba

bourguiba = Bourguiba()
command = bourguiba.generate_command("create a Python file")
print(f"Generated command: {command}")
```

## Requirements

- Python 3.6+
- torch
- transformers
- sentencepiece

## License

This project is licensed under the MIT License.
langval 0.0.3
Langval is a language model evaluation tool for evaluating the toxicity, accuracy, hallucination, and bias of language models.
Requires Python: >=3.12

# Langval

Langval is a language model evaluation tool for evaluating the toxicity, accuracy, hallucination, and bias of language
models.

## Installation

```bash
pip install langval
```

## Usage

```python
from langchain_openai import ChatOpenAI

import langval
from langval import TestCase
from langval.eval import BaseEval
from langval.eval.langchain import LangchainEval
from langval.model import Validation

llm = ChatOpenAI(model="gpt-4o-mini", temperature=0.3)
_eval = LangchainEval(
    llm, validation=Validation(toxicity=0.2, accuracy=0.9, hallucination=0.2, bias=0.1)
)


class TestEval(TestCase):
    @property
    def eval(self) -> BaseEval:
        return _eval

    @classmethod
    def setUpClass(cls) -> None:
        cls.model = llm

    @langval.assess(model=llm, question="What is the capital of France?")
    def test_eval(self):
        return "paris"

    @langval.assess("What is the capital of India?")
    def test_001(self):
        return "New delhi"

    @classmethod
    def tearDownClass(cls):
        del cls.model

```

## Contributing

Contributions are welcome! Please read the [contributing guidelines](CONTRIBUTING.md) for more information.

## License

langval is licensed under the [MIT License](LICENSE).