semvec/pypi-packages huggingface dataset:
bribrimapper 0.0.2
Identification and conversion functions for Bribri text processing
Requires Python: >=3.8
Keywords: bribri, chibchan, convert, g2p, ipa, phonology, transcription

Bribri Mapper
=============

Bribri Mapper is a Python library that provides identification and conversion
functions for Bribri text processing. It is based on the `dragonmapper`_ PyPI package.
This was created for Dartmouth LING 48 with Professor Coto-Solano. It is not being actively maintained, however I would welcome any contributions or change requests.

GitHub: `https://github.com/isabellahoch/bribrimapper`_
Free software: MIT license

Features
--------

- Explicitly convert a Bribri string into the International Phonetic Alphabet (IPA)
- Explicitly transcribe Bribri tones

.. code-block:: python

    >>> s = "e'tã ie' ẽ' tkèsẽ kũlũk , kóxlĩ kiök"
    >>> bribrimapper.bribri_to_ipa(s)
    "e2tã ie2 ẽ2 tke1sẽ kũlũk , kõ4lĩ kiök"
    >>> bribrimapper.transcribe_bribri_tones(s)
    "e˩˧tã ie˩˧ ẽ˩˧ tke˧sẽ kũlũk , kõ˥˧lĩ kiök"

Getting Started
---------------

- `Install Bribri Mapper <https://isabellahoch.github.io/bribrimapper/installation.html>`_
- Report bugs and ask questions via `GitHub Issues <https://github.com/isabellahoch/bribrimapper>`_
- Contribute documentation, code, or feedback

.. _dragonmapper: https://github.com/tsroten/dragonmapper
.. _https://github.com/isabellahoch/bribrimapper: https://github.com/isabellahoch/bribrimapper
id-card-recognition 0.3.9
A package for ID card recognition using Moonshot AI

# id_card_recognition

## 简介

`id_card_recognition` 是一个使用 Moonshot 提供的 AI 模型进行身份证识别的 Python 库。

## 配置

### 创建 .env 文件

在项目根目录下创建一个 `.env` 文件，并添加以下内容：

```env
API_KEY= 你的 moonshot AI 秘钥，申请网址：https://platform.moonshot.cn/
IMAGE_DIRECTORY= 需要识别的身份证照片存放路径，默认为 ./images，图片名称可以是'.png', '.jpg', '.jpeg', '.bmp', '.gif'
RESULT_FILE_NAME= 识别结果文件名称，为文本文件，默认为 result.txt
CHOSEN_MODEL_NAME= 选择的模型名称，默认为 "moonshot-v1-8k"
```

### 示例 .env 文件

```env
API_KEY=sk-XXXXXXXXXXX
IMAGE_DIRECTORY=./images
RESULT_FILE_NAME=result.txt
CHOSEN_MODEL_NAME=moonshot-v1-8k
```

## 使用

### 添加引用

在您的 Python 脚本中添加对 `do_recognition` 函数的引用：

```python
from id_card_recognition.recognition import do_recognition
```

### 调用识别方法

调用 `do_recognition()` 方法返回识别结果。识别结果将保存在 `RESULT_FILE_NAME` 指定的文件中。

### 示例

创建一个新的 Python 文件（例如 `run_id_card_recognition.py`），并编写如下代码：

```python
from id_card_recognition.recognition import do_recognition

if __name__ == "__main__":
    # 运行身份证识别
    results = do_recognition()

    # 打印结果
    print(results)
```

### 运行示例

```bash
python run_id_card_recognition.py
```

## 许可证

MIT License
```

此 `README.md` 文件包含了如何配置环境变量、使用库和运行示例的详细步骤。确保您根据实际情况替换你的 API 密钥。