<p align='center'><img src='assets/llano-logo.jpeg' style='width: 300px;'/></p>
<p align='center'>Let <strong style='color: #0a93f5'>L</strong>arge <strong style='color: #0a93f5'>Lan</strong>guage Models Serve As Data <strong style='color: #0a93f5'>Anno</strong>tators.</p>
<p align='center'>Zero-shot/few-shot information extractor.</p>
<h4 align="center">
<a href="https://github.com/SeanLee97/llano/blob/main/LICENSE">
<img src="https://img.shields.io/badge/License-Apache_2.0-blue.svg" alt="llano is released under the Apache 2.0 license." />
</a>
<a href="https://pypi.org/project/llano/">
<img src="https://badge.fury.io/py/llano.svg" alt="PyPI version" />
</a>
<a href="http://makeapullrequest.com">
<img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square" alt="http://makeapullrequest.com" />
</a>
<a href="https://discord.gg/FQVfncf9k8">
<img src="https://img.shields.io/badge/Discord-Community-orange" alt="Community" />
</a>
</h4>
# ⬇️ Installation
**stable**
```bash
python -m pip install -U llano
```
For Chinese users, the index-url can be specified for a faster installation.
```bash
python -m pip install -i https://pypi.tuna.tsinghua.edu.cn/simple -U llano
```
**latest**
```bash
python -m pip install git+https://github.com/SeanLee97/llano.git
```
💡 Currently, supports `Python3.8+`. Due to `Python 3.7`'s [end-of-life](https://endoflife.date/python) on June 27, 2023, we no longer support it.
# 📦 Features
- 🕸 Converts unstructured data into structured data using powerful LLMs (Large Language Models).
- 😎 Supports zero-shot, few-shot information extraction.
- 📑 Provides annotated data that can be used for further training or annotation refinement.
- 💡 API is simple to use and out of the box.
- 🗂️ Supports a wide range of tasks.
- 🌍 Supports multilingual prompts.
**Supporting Tasks:**
| Task Name | Supporting Languages | Status |
|---------------------------|-----------------------------------------|--------|
| NER | English (EN), Simplifed Chinese (ZH_CN) | 👌 |
| Text Classification (Binary, MultiClass) | English (EN), Simplifed Chinese (ZH_CN) | 👌 |
| MultiLabel Classification | English (EN), Simplifed Chinese (ZH_CN) | 👌 |
| Data Augmentation | English (EN), Simplifed Chinese (ZH_CN) | 👌 |
| Relation Extraction | English (EN), Simplifed Chinese (ZH_CN) | 👌 |
| Summarization | 🏗️ | 🏗️ |
| Text to SQL | 🏗️ | 🏗️ |
# 🚀 Quick Tour
## Examples
### English Example
```python
from llano.config import Tasks, Languages, OpenAIModels, NERFormatter
from llano import GPTModel, GPTAnnotator
print('All Supported Tasks:', Tasks.list_attributes())
print('All Supported Languages:', Languages.list_attributes())
print('All Supported NERFormatter:', NERFormatter.list_attributes())
print('All Supported OpenAIModels:', OpenAIModels.list_attributes())
api_key = 'Your API Key'
model = GPTModel(api_key, model=OpenAIModels.ChatGPT)
annotator = GPTAnnotator(model,
task=Tasks.NER,
language=Languages.EN,
label_mapping={
"people": 'PEO',
'location': 'LOC',
'company': 'COM',
'organization': 'ORG',
'job': 'JOB'})
doc = '''Elon Reeve Musk FRS (/ˈiːlɒn/ EE-lon; born June 28, 1971) is a business magnate and investor. He is the founder, CEO and chief engineer of SpaceX; angel investor, CEO and product architect of Tesla, Inc.; owner and CEO of Twitter, Inc.; founder of The Boring Company; co-founder of Neuralink and OpenAI; and president of the philanthropic Musk Foundation. '''
# w/o hint, w/o formatted result
ret = annotator(doc)
# w/o hint, w/ formatted result
ret = annotator(doc, formatter=NERFormatter.BIO)
# w/ hint, w/ formatted result
ret = annotator(doc, hint='the entity type `job` is job title such as CEO, founder, boss.', formatter=NERFormatter.BIO)
```
`result` is the annotation result. `formatted_result` is the formatted result.
💡Tip: if you want to train your domain model, you can use the formatted result.
<details>
<summary>Click to show the result.</summary>
```json
{
"request": {
"prompt": "You are a NER (Named-entity recognition) system, please help me with the NER task.\nTask: extract the entities and corresponding entity types from a given sentence.\nOnly support 5 entity types, including: people, location, company, organization, job.\n\nExplanation and examples: the entity type `job` is job title such as CEO, founder, boss.\n\nOutput format: (entity, entity_type).\n\nFollowing is the given sentence: Elon Reeve Musk FRS (/ˈiːlɒn/ EE-lon; born June 28, 1971) is a business magnate and investor. He is the founder, CEO and chief engineer of SpaceX; angel investor, CEO and product architect of Tesla, Inc.; owner and CEO of Twitter, Inc.; founder of The Boring Company; co-founder of Neuralink and OpenAI; and president of the philanthropic Musk Foundation. \nOutput:"
},
"meta": {
"role": "assistant",
"prompt_tokens": 195,
"completion_tokens": 74,
"total_tokens": 269,
"taken_time": 4.87583
},
"response": "\n\n(\"Elon Reeve Musk\", \"people\"), (\"FRS\", \"job\"), (\"SpaceX\", \"company\"), (\"Tesla, Inc.\", \"company\"), (\"Twitter, Inc.\", \"company\"), (\"The Boring Company\", \"organization\"), (\"Neuralink\", \"organization\"), (\"OpenAI\", \"organization\"), (\"Musk Foundation\", \"organization\")",
"result": {
"text": "Elon Reeve Musk FRS (/ˈiːlɒn/ EE-lon; born June 28, 1971) is a business magnate and investor. He is the founder, CEO and chief engineer of SpaceX; angel investor, CEO and product architect of Tesla, Inc.; owner and CEO of Twitter, Inc.; founder of The Boring Company; co-founder of Neuralink and OpenAI; and president of the philanthropic Musk Foundation. ",
"entities": [
[
0,
15,
"Elon Reeve Musk",
"PEO"
],
[
16,
19,
"FRS",
"JOB"
],
[
139,
145,
"SpaceX",
"COM"
],
[
192,
203,
"Tesla, Inc.",
"COM"
],
[
222,
235,
"Twitter, Inc.",
"COM"
],
[
248,
266,
"The Boring Company",
"ORG"
],
[
282,
291,
"Neuralink",
"ORG"
],
[
296,
302,
"OpenAI",
"ORG"
],
[
339,
354,
"Musk Foundation",
"ORG"
]
],
"formatted_result": "E\tB-PEO\nl\tI-PEO\no\tI-PEO\nn\tI-PEO\n \tI-PEO\nR\tI-PEO\ne\tI-PEO\ne\tI-PEO\nv\tI-PEO\ne\tI-PEO\n \tI-PEO\nM\tI-PEO\nu\tI-PEO\ns\tI-PEO\nk\tI-PEO\n \tO\nF\tB-JOB\nR\tI-JOB\nS\tI-JOB\n \tO\n(\tO\n/\tO\nˈ\tO\ni\tO\nː\tO\nl\tO\nɒ\tO\nn\tO\n/\tO\n \tO\nE\tO\nE\tO\n-\tO\nl\tO\no\tO\nn\tO\n;\tO\n \tO\nb\tO\no\tO\nr\t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G\no\tI-ORG\nn\tI-ORG\n.\tO\n \tO"
},
}
```
</details>
### Chinese Example
```python
from llano.config import Tasks, Languages, OpenAIModels, NERFormatter
from llano import GPTModel, GPTAnnotator
print('All Supported Tasks:', Tasks.list_attributes())
print('All Supported Languages:', Languages.list_attributes())
print('All Supported NERFormatter:', NERFormatter.list_attributes())
print('All Supported OpenAIModels:', OpenAIModels.list_attributes())
api_keys = ['Your API Keys']
model = GPTModel(api_keys, model=OpenAIModels.ChatGPT)
annotator = GPTAnnotator(model,
task=Tasks.NER,
language=Languages.ZH_CN,
label_mapping={
'人名': 'PEO',
'地名': 'LOC',
'公司名': 'COM',
'机构名': 'ORG',
'身份': 'ID'})
doc = '''埃隆·里夫·马斯克(Elon Reeve Musk) [107] ,1971年6月28日出生于南非的行政首都比勒陀利亚,企业家、工程师、慈善家、美国国家工程院院士。他同时兼具南非、加拿大和美国三重国籍。埃隆·马斯克本科毕业于宾夕法尼亚大学,获经济学和物理学双学位。1995年至2002年,马斯克与合伙人先后办了三家公司,分别是在线内容出版软件“Zip2”、电子支付“X.com”和“PayPal”。'''
ret = annotator(doc) # w/o hint, w/o formatter
ret = annotator(doc, formatter=NERFormatter.BIO) # w/o hint, w/ formatter
ret = annotator(doc, hint='身份表示从事职位的头衔或社会地位等,如:老板,董事长,作家,理事长等', formatter=NERFormatter.BIO) # w/o hint, w/ formatter
```
<details>
<summary>Click to show the result.</summary>
```json
{
"request": {
"prompt": "你是一个 NER 系统,请帮我完成中文 NER 任务。\n任务要求如下:找到句子中的实体,并返回实体及实体类型。\n支持的实体类型仅限5类:人名、地名、公司名、机构名、身份。\n\n解释及示例:身份表示从事职位的头衔或社会地位等,如:老板,董事长,作家,理事长等\n\n输出格式要求:(实体, 实体类型)。\n\n以下是输入句子:埃隆·里夫·马斯克(Elon Reeve Musk) [107] ,1971年6月28日出生于南非的行政首都比勒陀利亚,企业家、工程师、慈善家、美国国家工程院院士。他同时兼具南非、加拿大和美国三重国籍。埃隆·马斯克本科毕业于宾夕法尼亚大学,获经济学和物理学双学位。1995年至2002年,马斯克与合伙人先后办了三家公司,分别是在线内容出版软件“Zip2”、电子支付“X.com”和“PayPal”。\n输出:"
},
"meta": {
"role": "assistant",
"prompt_tokens": 346,
"completion_tokens": 103,
"total_tokens": 449,
"taken_time": 4.54531
},
"response": "('埃隆·里夫·马斯克', '人名'), ('南非', '地名'), ('比勒托利亚', '地名'), ('美国国家工程院院士', '身份'), ('宾夕法尼亚大学', '机构名'), ('Zip2', '公司名'), ('X.com', '公司名'), ('PayPal', '公司名')",
"result": {
"text": "埃隆·里夫·马斯克(Elon Reeve Musk) [107] ,1971年6月28日出生于南非的行政首都比勒陀利亚,企业家、工程师、慈善家、美国国家工程院院士。他同时兼具南非、加拿大和美国三重国籍。埃隆·马斯克本科毕业于宾夕法尼亚大学,获经济学和物理学双学位。1995年至2002年,马斯克与合伙人先后办了三家公司,分别是在线内容出版软件“Zip2”、电子支付“X.com”和“PayPal”。",
"entities": [
[
0,
9,
"埃隆·里夫·马斯克",
"PEO"
],
[
48,
50,
"南非",
"LOC"
],
[
73,
82,
"美国国家工程院院士",
"ID"
],
[
88,
90,
"南非",
"LOC"
],
[
113,
120,
"宾夕法尼亚大学",
"ORG"
],
[
173,
177,
"Zip2",
"COM"
],
[
184,
189,
"X.com",
"COM"
],
[
192,
198,
"PayPal",
"COM"
]
],
"formatted_result": "埃\tB-PEO\n隆\tI-PEO\n·\tI-PEO\n里\tI-PEO\n夫\tI-PEO\n·\tI-PEO\n马\tI-PEO\n斯\tI-PEO\n克\tI-PEO\n(\tO\nE\tO\nl\tO\no\tO\nn\tO\n \tO\nR\tO\ne\tO\ne\tO\nv\tO\ne\tO\n \tO\nM\tO\nu\tO\ns\tO\nk\tO\n)\tO\n \tO\n[\tO\n1\tO\n0\tO\n7\tO\n]\tO\n \tO\n \tO\n,\tO\n1\tO\n9\tO\n7\tO\n1\tO\n年\tO\n6\tO\n月\tO\n2\tO\n8\tO\n日\tO\n出\tO\n生\tO\n于\tO\n南\tB-LOC\n非\tI-LOC\n的\tO\n行\tO\n政\tO\n首\tO\n都\tO\n比\tO\n勒\tO\n陀\tO\n利\tO\n亚\tO\n,\tO\n企\tO\n业\tO\n家\tO\n、\tO\n工\tO\n程\tO\n师\tO\n、\tO\n慈\tO\n善\tO\n家\tO\n、\tO\n美\tB-ID\n国\tI-ID\n国\tI-ID\n家\tI-ID\n工\tI-ID\n程\tI-ID\n院\tI-ID\n院\tI-ID\n士\tI-ID\n。\tO\n他\tO\n同\tO\n时\tO\n兼\tO\n具\tO\n南\tB-LOC\n非\tI-LOC\n、\tO\n加\tO\n拿\tO\n大\tO\n和\tO\n美\tO\n国\tO\n三\tO\n重\tO\n国\tO\n籍\tO\n。\tO\n埃\tO\n隆\tO\n·\tO\n马\tO\n斯\tO\n克\tO\n本\tO\n科\tO\n毕\tO\n业\tO\n于\tO\n宾\tB-ORG\n夕\tI-ORG\n法\tI-ORG\n尼\tI-ORG\n亚\tI-ORG\n大\tI-ORG\n学\tI-ORG\n,\tO\n获\tO\n经\tO\n济\tO\n学\tO\n和\tO\n物\tO\n理\tO\n学\tO\n双\tO\n学\tO\n位\tO\n。\tO\n1\tO\n9\tO\n9\tO\n5\tO\n年\tO\n至\tO\n2\tO\n0\tO\n0\tO\n2\tO\n年\tO\n,\tO\n马\tO\n斯\tO\n克\tO\n与\tO\n合\tO\n伙\tO\n人\tO\n先\tO\n后\tO\n办\tO\n了\tO\n三\tO\n家\tO\n公\tO\n司\tO\n,\tO\n分\tO\n别\tO\n是\tO\n在\tO\n线\tO\n内\tO\n容\tO\n出\tO\n版\tO\n软\tO\n件\tO\n“\tO\nZ\tB-COM\ni\tI-COM\np\tI-COM\n2\tI-COM\n”\tO\n、\tO\n电\tO\n子\tO\n支\tO\n付\tO\n“\tO\nX\tB-COM\n.\tI-COM\nc\tI-COM\no\tI-COM\nm\tI-COM\n”\tO\n和\tO\n“\tO\nP\tB-COM\na\tI-COM\ny\tI-COM\nP\tI-COM\na\tI-COM\nl\tI-COM\n”\tO\n。\tO"
}
}
```
</details>
## CLI [WIP]
WIP
# Contribution
<p align='center'>Contributions are always welcome!<br />Welcome to join our community!</p>
<div align="center">
<a href="https://discord.gg/FQVfncf9k8"><img alt="Join us on Discord" src="https://img.shields.io/discord/1081865058306490469?style=for-the-badge"></a>
</div>
Raw data
{
"_id": null,
"home_page": "https://github.com/SeanLee97/llano",
"name": "llano",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "LLM,NLP,Annotator,Prompt",
"author": "sean lee",
"author_email": "xmlee97@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/ea/8f/b750ba2fb92c70e41bddb2ab07d78fd22f73d50267bfa62b125cfeb6fb2c/llano-0.1.8.tar.gz",
"platform": "all",
"description": "<p align='center'><img src='assets/llano-logo.jpeg' style='width: 300px;'/></p>\n\n<p align='center'>Let <strong style='color: #0a93f5'>L</strong>arge <strong style='color: #0a93f5'>Lan</strong>guage Models Serve As Data <strong style='color: #0a93f5'>Anno</strong>tators.</p>\n\n<p align='center'>Zero-shot/few-shot information extractor.</p>\n\n\n <h4 align=\"center\">\n <a href=\"https://github.com/SeanLee97/llano/blob/main/LICENSE\">\n <img src=\"https://img.shields.io/badge/License-Apache_2.0-blue.svg\" alt=\"llano is released under the Apache 2.0 license.\" />\n </a>\n <a href=\"https://pypi.org/project/llano/\">\n <img src=\"https://badge.fury.io/py/llano.svg\" alt=\"PyPI version\" />\n </a>\n <a href=\"http://makeapullrequest.com\">\n <img src=\"https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square\" alt=\"http://makeapullrequest.com\" />\n </a>\n <a href=\"https://discord.gg/FQVfncf9k8\">\n <img src=\"https://img.shields.io/badge/Discord-Community-orange\" alt=\"Community\" />\n </a>\n</h4>\n\n# \u2b07\ufe0f Installation\n\n**stable**\n```bash\npython -m pip install -U llano\n```\n\nFor Chinese users, the index-url can be specified for a faster installation.\n\n```bash\npython -m pip install -i https://pypi.tuna.tsinghua.edu.cn/simple -U llano\n```\n\n**latest**\n```bash\npython -m pip install git+https://github.com/SeanLee97/llano.git\n```\n\n\ud83d\udca1 Currently, supports `Python3.8+`. Due to `Python 3.7`'s [end-of-life](https://endoflife.date/python) on June 27, 2023, we no longer support it.\n\n# \ud83d\udce6 Features\n\n- \ud83d\udd78 Converts unstructured data into structured data using powerful LLMs (Large Language Models).\n- \ud83d\ude0e Supports zero-shot, few-shot information extraction.\n- \ud83d\udcd1 Provides annotated data that can be used for further training or annotation refinement.\n- \ud83d\udca1 API is simple to use and out of the box.\n- \ud83d\uddc2\ufe0f Supports a wide range of tasks.\n- \ud83c\udf0d Supports multilingual prompts.\n\n\n**Supporting Tasks:**\n\n| Task Name | Supporting Languages | Status |\n|---------------------------|-----------------------------------------|--------|\n| NER | English (EN), Simplifed Chinese (ZH_CN) | \ud83d\udc4c |\n| Text Classification (Binary, MultiClass) | English (EN), Simplifed Chinese (ZH_CN) | \ud83d\udc4c |\n| MultiLabel Classification | English (EN), Simplifed Chinese (ZH_CN) | \ud83d\udc4c |\n| Data Augmentation | English (EN), Simplifed Chinese (ZH_CN) | \ud83d\udc4c |\n| Relation Extraction | English (EN), Simplifed Chinese (ZH_CN) | \ud83d\udc4c |\n| Summarization | \ud83c\udfd7\ufe0f | \ud83c\udfd7\ufe0f |\n| Text to SQL | \ud83c\udfd7\ufe0f | \ud83c\udfd7\ufe0f |\n\n\n\n# \ud83d\ude80 Quick Tour\n\n## Examples\n\n### English Example\n\n```python\nfrom llano.config import Tasks, Languages, OpenAIModels, NERFormatter\nfrom llano import GPTModel, GPTAnnotator\n\nprint('All Supported Tasks:', Tasks.list_attributes())\nprint('All Supported Languages:', Languages.list_attributes())\nprint('All Supported NERFormatter:', NERFormatter.list_attributes())\nprint('All Supported OpenAIModels:', OpenAIModels.list_attributes())\n\napi_key = 'Your API Key'\nmodel = GPTModel(api_key, model=OpenAIModels.ChatGPT)\nannotator = GPTAnnotator(model,\n task=Tasks.NER,\n language=Languages.EN,\n label_mapping={\n \"people\": 'PEO',\n 'location': 'LOC',\n 'company': 'COM',\n 'organization': 'ORG',\n 'job': 'JOB'})\ndoc = '''Elon Reeve Musk FRS (/\u02c8i\u02d0l\u0252n/ EE-lon; born June 28, 1971) is a business magnate and investor. He is the founder, CEO and chief engineer of SpaceX; angel investor, CEO and product architect of Tesla, Inc.; owner and CEO of Twitter, Inc.; founder of The Boring Company; co-founder of Neuralink and OpenAI; and president of the philanthropic Musk Foundation. '''\n\n# w/o hint, w/o formatted result\nret = annotator(doc)\n# w/o hint, w/ formatted result\nret = annotator(doc, formatter=NERFormatter.BIO)\n# w/ hint, w/ formatted result\nret = annotator(doc, hint='the entity type `job` is job title such as CEO, founder, boss.', formatter=NERFormatter.BIO) \n```\n\n`result` is the annotation result. `formatted_result` is the formatted result. \n\n\ud83d\udca1Tip: if you want to train your domain model, you can use the formatted result.\n \n<details>\n<summary>Click to show the result.</summary>\n\n```json\n{\n \"request\": {\n \"prompt\": \"You are a NER (Named-entity recognition) system, please help me with the NER task.\\nTask: extract the entities and corresponding entity types from a given sentence.\\nOnly support 5 entity types, including: people, location, company, organization, job.\\n\\nExplanation and examples: the entity type `job` is job title such as CEO, founder, boss.\\n\\nOutput format: (entity, entity_type).\\n\\nFollowing is the given sentence: Elon Reeve Musk FRS (/\u02c8i\u02d0l\u0252n/ EE-lon; born June 28, 1971) is a business magnate and investor. He is the founder, CEO and chief engineer of SpaceX; angel investor, CEO and product architect of Tesla, Inc.; owner and CEO of Twitter, Inc.; founder of The Boring Company; co-founder of Neuralink and OpenAI; and president of the philanthropic Musk Foundation. \\nOutput:\"\n },\n \"meta\": {\n \"role\": \"assistant\",\n \"prompt_tokens\": 195,\n \"completion_tokens\": 74,\n \"total_tokens\": 269,\n \"taken_time\": 4.87583\n },\n \"response\": \"\\n\\n(\\\"Elon Reeve Musk\\\", \\\"people\\\"), (\\\"FRS\\\", \\\"job\\\"), (\\\"SpaceX\\\", \\\"company\\\"), (\\\"Tesla, Inc.\\\", \\\"company\\\"), (\\\"Twitter, Inc.\\\", \\\"company\\\"), (\\\"The Boring Company\\\", \\\"organization\\\"), (\\\"Neuralink\\\", \\\"organization\\\"), (\\\"OpenAI\\\", \\\"organization\\\"), (\\\"Musk Foundation\\\", \\\"organization\\\")\",\n \"result\": {\n \"text\": \"Elon Reeve Musk FRS (/\u02c8i\u02d0l\u0252n/ EE-lon; born June 28, 1971) is a business magnate and investor. He is the founder, CEO and chief engineer of SpaceX; angel investor, CEO and product architect of Tesla, Inc.; owner and CEO of Twitter, Inc.; founder of The Boring Company; co-founder of Neuralink and OpenAI; and president of the philanthropic Musk Foundation. \",\n \"entities\": [\n [\n 0,\n 15,\n \"Elon Reeve Musk\",\n \"PEO\"\n ],\n [\n 16,\n 19,\n \"FRS\",\n \"JOB\"\n ],\n [\n 139,\n 145,\n \"SpaceX\",\n \"COM\"\n ],\n [\n 192,\n 203,\n \"Tesla, Inc.\",\n \"COM\"\n ],\n [\n 222,\n 235,\n \"Twitter, Inc.\",\n \"COM\"\n ],\n [\n 248,\n 266,\n \"The Boring Company\",\n \"ORG\"\n ],\n [\n 282,\n 291,\n \"Neuralink\",\n \"ORG\"\n ],\n [\n 296,\n 302,\n \"OpenAI\",\n \"ORG\"\n ],\n [\n 339,\n 354,\n \"Musk Foundation\",\n \"ORG\"\n ]\n ],\n \"formatted_result\": \"E\\tB-PEO\\nl\\tI-PEO\\no\\tI-PEO\\nn\\tI-PEO\\n \\tI-PEO\\nR\\tI-PEO\\ne\\tI-PEO\\ne\\tI-PEO\\nv\\tI-PEO\\ne\\tI-PEO\\n \\tI-PEO\\nM\\tI-PEO\\nu\\tI-PEO\\ns\\tI-PEO\\nk\\tI-PEO\\n \\tO\\nF\\tB-JOB\\nR\\tI-JOB\\nS\\tI-JOB\\n \\tO\\n(\\tO\\n/\\tO\\n\u02c8\\tO\\ni\\tO\\n\u02d0\\tO\\nl\\tO\\n\u0252\\tO\\nn\\tO\\n/\\tO\\n \\tO\\nE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\nd\\tO\\ne\\tO\\nr\\tO\\n \\tO\\no\\tO\\nf\\tO\\n \\tO\\nN\\tB-ORG\\ne\\tI-ORG\\nu\\tI-ORG\\nr\\tI-ORG\\na\\tI-ORG\\nl\\tI-ORG\\ni\\tI-ORG\\nn\\tI-ORG\\nk\\tI-ORG\\n \\tO\\na\\tO\\nn\\tO\\nd\\tO\\n \\tO\\nO\\tB-ORG\\np\\tI-ORG\\ne\\tI-ORG\\nn\\tI-ORG\\nA\\tI-ORG\\nI\\tI-ORG\\n;\\tO\\n \\tO\\na\\tO\\nn\\tO\\nd\\tO\\n \\tO\\np\\tO\\nr\\tO\\ne\\tO\\ns\\tO\\ni\\tO\\nd\\tO\\ne\\tO\\nn\\tO\\nt\\tO\\n \\tO\\no\\tO\\nf\\tO\\n \\tO\\nt\\tO\\nh\\tO\\ne\\tO\\n \\tO\\np\\tO\\nh\\tO\\ni\\tO\\nl\\tO\\na\\tO\\nn\\tO\\nt\\tO\\nh\\tO\\nr\\tO\\no\\tO\\np\\tO\\ni\\tO\\nc\\tO\\n \\tO\\nM\\tB-ORG\\nu\\tI-ORG\\ns\\tI-ORG\\nk\\tI-ORG\\n \\tI-ORG\\nF\\tI-ORG\\no\\tI-ORG\\nu\\tI-ORG\\nn\\tI-ORG\\nd\\tI-ORG\\na\\tI-ORG\\nt\\tI-ORG\\ni\\tI-ORG\\no\\tI-ORG\\nn\\tI-ORG\\n.\\tO\\n \\tO\"\n },\n}\n```\n</details>\n\n### Chinese Example\n\n```python\nfrom llano.config import Tasks, Languages, OpenAIModels, NERFormatter\nfrom llano import GPTModel, GPTAnnotator\n\nprint('All Supported Tasks:', Tasks.list_attributes())\nprint('All Supported Languages:', Languages.list_attributes())\nprint('All Supported NERFormatter:', NERFormatter.list_attributes())\nprint('All Supported OpenAIModels:', OpenAIModels.list_attributes())\n\napi_keys = ['Your API Keys']\nmodel = GPTModel(api_keys, model=OpenAIModels.ChatGPT)\nannotator = GPTAnnotator(model,\n task=Tasks.NER,\n language=Languages.ZH_CN,\n label_mapping={\n '\u4eba\u540d': 'PEO',\n '\u5730\u540d': 'LOC',\n '\u516c\u53f8\u540d': 'COM',\n '\u673a\u6784\u540d': 'ORG',\n '\u8eab\u4efd': 'ID'})\ndoc = '''\u57c3\u9686\u00b7\u91cc\u592b\u00b7\u9a6c\u65af\u514b\uff08Elon Reeve Musk\uff09 [107] \uff0c1971\u5e746\u670828\u65e5\u51fa\u751f\u4e8e\u5357\u975e\u7684\u884c\u653f\u9996\u90fd\u6bd4\u52d2\u9640\u5229\u4e9a\uff0c\u4f01\u4e1a\u5bb6\u3001\u5de5\u7a0b\u5e08\u3001\u6148\u5584\u5bb6\u3001\u7f8e\u56fd\u56fd\u5bb6\u5de5\u7a0b\u9662\u9662\u58eb\u3002\u4ed6\u540c\u65f6\u517c\u5177\u5357\u975e\u3001\u52a0\u62ff\u5927\u548c\u7f8e\u56fd\u4e09\u91cd\u56fd\u7c4d\u3002\u57c3\u9686\u00b7\u9a6c\u65af\u514b\u672c\u79d1\u6bd5\u4e1a\u4e8e\u5bbe\u5915\u6cd5\u5c3c\u4e9a\u5927\u5b66\uff0c\u83b7\u7ecf\u6d4e\u5b66\u548c\u7269\u7406\u5b66\u53cc\u5b66\u4f4d\u30021995\u5e74\u81f32002\u5e74\uff0c\u9a6c\u65af\u514b\u4e0e\u5408\u4f19\u4eba\u5148\u540e\u529e\u4e86\u4e09\u5bb6\u516c\u53f8\uff0c\u5206\u522b\u662f\u5728\u7ebf\u5185\u5bb9\u51fa\u7248\u8f6f\u4ef6\u201cZip2\u201d\u3001\u7535\u5b50\u652f\u4ed8\u201cX.com\u201d\u548c\u201cPayPal\u201d\u3002'''\n\nret = annotator(doc) # w/o hint, w/o formatter\nret = annotator(doc, formatter=NERFormatter.BIO) # w/o hint, w/ formatter\nret = annotator(doc, hint='\u8eab\u4efd\u8868\u793a\u4ece\u4e8b\u804c\u4f4d\u7684\u5934\u8854\u6216\u793e\u4f1a\u5730\u4f4d\u7b49\uff0c\u5982\uff1a\u8001\u677f\uff0c\u8463\u4e8b\u957f\uff0c\u4f5c\u5bb6\uff0c\u7406\u4e8b\u957f\u7b49', formatter=NERFormatter.BIO) # w/o hint, w/ formatter\n```\n\n<details>\n<summary>Click to show the result.</summary>\n\n```json\n{\n \"request\": {\n \"prompt\": \"\u4f60\u662f\u4e00\u4e2a NER \u7cfb\u7edf\uff0c\u8bf7\u5e2e\u6211\u5b8c\u6210\u4e2d\u6587 NER \u4efb\u52a1\u3002\\n\u4efb\u52a1\u8981\u6c42\u5982\u4e0b\uff1a\u627e\u5230\u53e5\u5b50\u4e2d\u7684\u5b9e\u4f53\uff0c\u5e76\u8fd4\u56de\u5b9e\u4f53\u53ca\u5b9e\u4f53\u7c7b\u578b\u3002\\n\u652f\u6301\u7684\u5b9e\u4f53\u7c7b\u578b\u4ec5\u96505\u7c7b\uff1a\u4eba\u540d\u3001\u5730\u540d\u3001\u516c\u53f8\u540d\u3001\u673a\u6784\u540d\u3001\u8eab\u4efd\u3002\\n\\n\u89e3\u91ca\u53ca\u793a\u4f8b\uff1a\u8eab\u4efd\u8868\u793a\u4ece\u4e8b\u804c\u4f4d\u7684\u5934\u8854\u6216\u793e\u4f1a\u5730\u4f4d\u7b49\uff0c\u5982\uff1a\u8001\u677f\uff0c\u8463\u4e8b\u957f\uff0c\u4f5c\u5bb6\uff0c\u7406\u4e8b\u957f\u7b49\\n\\n\u8f93\u51fa\u683c\u5f0f\u8981\u6c42\uff1a(\u5b9e\u4f53, \u5b9e\u4f53\u7c7b\u578b)\u3002\\n\\n\u4ee5\u4e0b\u662f\u8f93\u5165\u53e5\u5b50\uff1a\u57c3\u9686\u00b7\u91cc\u592b\u00b7\u9a6c\u65af\u514b\uff08Elon Reeve Musk\uff09 [107] \uff0c1971\u5e746\u670828\u65e5\u51fa\u751f\u4e8e\u5357\u975e\u7684\u884c\u653f\u9996\u90fd\u6bd4\u52d2\u9640\u5229\u4e9a\uff0c\u4f01\u4e1a\u5bb6\u3001\u5de5\u7a0b\u5e08\u3001\u6148\u5584\u5bb6\u3001\u7f8e\u56fd\u56fd\u5bb6\u5de5\u7a0b\u9662\u9662\u58eb\u3002\u4ed6\u540c\u65f6\u517c\u5177\u5357\u975e\u3001\u52a0\u62ff\u5927\u548c\u7f8e\u56fd\u4e09\u91cd\u56fd\u7c4d\u3002\u57c3\u9686\u00b7\u9a6c\u65af\u514b\u672c\u79d1\u6bd5\u4e1a\u4e8e\u5bbe\u5915\u6cd5\u5c3c\u4e9a\u5927\u5b66\uff0c\u83b7\u7ecf\u6d4e\u5b66\u548c\u7269\u7406\u5b66\u53cc\u5b66\u4f4d\u30021995\u5e74\u81f32002\u5e74\uff0c\u9a6c\u65af\u514b\u4e0e\u5408\u4f19\u4eba\u5148\u540e\u529e\u4e86\u4e09\u5bb6\u516c\u53f8\uff0c\u5206\u522b\u662f\u5728\u7ebf\u5185\u5bb9\u51fa\u7248\u8f6f\u4ef6\u201cZip2\u201d\u3001\u7535\u5b50\u652f\u4ed8\u201cX.com\u201d\u548c\u201cPayPal\u201d\u3002\\n\u8f93\u51fa\uff1a\"\n },\n \"meta\": {\n \"role\": \"assistant\",\n \"prompt_tokens\": 346,\n \"completion_tokens\": 103,\n \"total_tokens\": 449,\n \"taken_time\": 4.54531\n },\n \"response\": \"('\u57c3\u9686\u00b7\u91cc\u592b\u00b7\u9a6c\u65af\u514b', '\u4eba\u540d'), ('\u5357\u975e', '\u5730\u540d'), ('\u6bd4\u52d2\u6258\u5229\u4e9a', '\u5730\u540d'), ('\u7f8e\u56fd\u56fd\u5bb6\u5de5\u7a0b\u9662\u9662\u58eb', '\u8eab\u4efd'), ('\u5bbe\u5915\u6cd5\u5c3c\u4e9a\u5927\u5b66', '\u673a\u6784\u540d'), ('Zip2', '\u516c\u53f8\u540d'), ('X.com', '\u516c\u53f8\u540d'), ('PayPal', '\u516c\u53f8\u540d')\",\n \"result\": {\n \"text\": \"\u57c3\u9686\u00b7\u91cc\u592b\u00b7\u9a6c\u65af\u514b\uff08Elon Reeve Musk\uff09 [107] \uff0c1971\u5e746\u670828\u65e5\u51fa\u751f\u4e8e\u5357\u975e\u7684\u884c\u653f\u9996\u90fd\u6bd4\u52d2\u9640\u5229\u4e9a\uff0c\u4f01\u4e1a\u5bb6\u3001\u5de5\u7a0b\u5e08\u3001\u6148\u5584\u5bb6\u3001\u7f8e\u56fd\u56fd\u5bb6\u5de5\u7a0b\u9662\u9662\u58eb\u3002\u4ed6\u540c\u65f6\u517c\u5177\u5357\u975e\u3001\u52a0\u62ff\u5927\u548c\u7f8e\u56fd\u4e09\u91cd\u56fd\u7c4d\u3002\u57c3\u9686\u00b7\u9a6c\u65af\u514b\u672c\u79d1\u6bd5\u4e1a\u4e8e\u5bbe\u5915\u6cd5\u5c3c\u4e9a\u5927\u5b66\uff0c\u83b7\u7ecf\u6d4e\u5b66\u548c\u7269\u7406\u5b66\u53cc\u5b66\u4f4d\u30021995\u5e74\u81f32002\u5e74\uff0c\u9a6c\u65af\u514b\u4e0e\u5408\u4f19\u4eba\u5148\u540e\u529e\u4e86\u4e09\u5bb6\u516c\u53f8\uff0c\u5206\u522b\u662f\u5728\u7ebf\u5185\u5bb9\u51fa\u7248\u8f6f\u4ef6\u201cZip2\u201d\u3001\u7535\u5b50\u652f\u4ed8\u201cX.com\u201d\u548c\u201cPayPal\u201d\u3002\",\n \"entities\": [\n [\n 0,\n 9,\n \"\u57c3\u9686\u00b7\u91cc\u592b\u00b7\u9a6c\u65af\u514b\",\n \"PEO\"\n ],\n [\n 48,\n 50,\n \"\u5357\u975e\",\n \"LOC\"\n ],\n [\n 73,\n 82,\n \"\u7f8e\u56fd\u56fd\u5bb6\u5de5\u7a0b\u9662\u9662\u58eb\",\n \"ID\"\n ],\n [\n 88,\n 90,\n \"\u5357\u975e\",\n \"LOC\"\n ],\n [\n 113,\n 120,\n \"\u5bbe\u5915\u6cd5\u5c3c\u4e9a\u5927\u5b66\",\n \"ORG\"\n ],\n [\n 173,\n 177,\n \"Zip2\",\n \"COM\"\n ],\n [\n 184,\n 189,\n \"X.com\",\n \"COM\"\n ],\n [\n 192,\n 198,\n \"PayPal\",\n \"COM\"\n ]\n ],\n \"formatted_result\": \"\u57c3\\tB-PEO\\n\u9686\\tI-PEO\\n\u00b7\\tI-PEO\\n\u91cc\\tI-PEO\\n\u592b\\tI-PEO\\n\u00b7\\tI-PEO\\n\u9a6c\\tI-PEO\\n\u65af\\tI-PEO\\n\u514b\\tI-PEO\\n\uff08\\tO\\nE\\tO\\nl\\tO\\no\\tO\\nn\\tO\\n \\tO\\nR\\tO\\ne\\tO\\ne\\tO\\nv\\tO\\ne\\tO\\n \\tO\\nM\\tO\\nu\\tO\\ns\\tO\\nk\\tO\\n\uff09\\tO\\n \\tO\\n[\\tO\\n1\\tO\\n0\\tO\\n7\\tO\\n]\\tO\\n \\tO\\n \\tO\\n\uff0c\\tO\\n1\\tO\\n9\\tO\\n7\\tO\\n1\\tO\\n\u5e74\\tO\\n6\\tO\\n\u6708\\tO\\n2\\tO\\n8\\tO\\n\u65e5\\tO\\n\u51fa\\tO\\n\u751f\\tO\\n\u4e8e\\tO\\n\u5357\\tB-LOC\\n\u975e\\tI-LOC\\n\u7684\\tO\\n\u884c\\tO\\n\u653f\\tO\\n\u9996\\tO\\n\u90fd\\tO\\n\u6bd4\\tO\\n\u52d2\\tO\\n\u9640\\tO\\n\u5229\\tO\\n\u4e9a\\tO\\n\uff0c\\tO\\n\u4f01\\tO\\n\u4e1a\\tO\\n\u5bb6\\tO\\n\u3001\\tO\\n\u5de5\\tO\\n\u7a0b\\tO\\n\u5e08\\tO\\n\u3001\\tO\\n\u6148\\tO\\n\u5584\\tO\\n\u5bb6\\tO\\n\u3001\\tO\\n\u7f8e\\tB-ID\\n\u56fd\\tI-ID\\n\u56fd\\tI-ID\\n\u5bb6\\tI-ID\\n\u5de5\\tI-ID\\n\u7a0b\\tI-ID\\n\u9662\\tI-ID\\n\u9662\\tI-ID\\n\u58eb\\tI-ID\\n\u3002\\t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O\\n\u7248\\tO\\n\u8f6f\\tO\\n\u4ef6\\tO\\n\u201c\\tO\\nZ\\tB-COM\\ni\\tI-COM\\np\\tI-COM\\n2\\tI-COM\\n\u201d\\tO\\n\u3001\\tO\\n\u7535\\tO\\n\u5b50\\tO\\n\u652f\\tO\\n\u4ed8\\tO\\n\u201c\\tO\\nX\\tB-COM\\n.\\tI-COM\\nc\\tI-COM\\no\\tI-COM\\nm\\tI-COM\\n\u201d\\tO\\n\u548c\\tO\\n\u201c\\tO\\nP\\tB-COM\\na\\tI-COM\\ny\\tI-COM\\nP\\tI-COM\\na\\tI-COM\\nl\\tI-COM\\n\u201d\\tO\\n\u3002\\tO\"\n }\n}\n```\n</details>\n\n\n## CLI [WIP]\nWIP\n\n# Contribution\n\n<p align='center'>Contributions are always welcome!<br />Welcome to join our community!</p>\n\n<div align=\"center\">\n <a href=\"https://discord.gg/FQVfncf9k8\"><img alt=\"Join us on Discord\" src=\"https://img.shields.io/discord/1081865058306490469?style=for-the-badge\"></a>\n</div>\n\n\n",
"bugtrack_url": null,
"license": "Apache 2.0 License",
"summary": "Let Large Language Models Serve As Data Annotators.",
"version": "0.1.8",
"split_keywords": [
"llm",
"nlp",
"annotator",
"prompt"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "ef17715b740b47b98f174e1a9fcdf2a923e3305dbc6201e55e196e43c0fd230f",
"md5": "b588a2e16d366bec0c7e214f5abdd901",
"sha256": "d6b2e550fb17858eafe11f5c2efdfbdcefbffdfaba0d7fb0f21a20685303cf47"
},
"downloads": -1,
"filename": "llano-0.1.8-py3-none-any.whl",
"has_sig": false,
"md5_digest": "b588a2e16d366bec0c7e214f5abdd901",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 20991,
"upload_time": "2023-03-18T03:39:03",
"upload_time_iso_8601": "2023-03-18T03:39:03.395535Z",
"url": "https://files.pythonhosted.org/packages/ef/17/715b740b47b98f174e1a9fcdf2a923e3305dbc6201e55e196e43c0fd230f/llano-0.1.8-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "ea8fb750ba2fb92c70e41bddb2ab07d78fd22f73d50267bfa62b125cfeb6fb2c",
"md5": "7e119285913888d60f56c5874ad45fba",
"sha256": "6ccd79525301b0addfcb8f5abdb343960d6018a3fb9c8c902fd1c68b42f9359e"
},
"downloads": -1,
"filename": "llano-0.1.8.tar.gz",
"has_sig": false,
"md5_digest": "7e119285913888d60f56c5874ad45fba",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 20843,
"upload_time": "2023-03-18T03:39:06",
"upload_time_iso_8601": "2023-03-18T03:39:06.193765Z",
"url": "https://files.pythonhosted.org/packages/ea/8f/b750ba2fb92c70e41bddb2ab07d78fd22f73d50267bfa62b125cfeb6fb2c/llano-0.1.8.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-03-18 03:39:06",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "SeanLee97",
"github_project": "llano",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [
{
"name": "Jinja2",
"specs": [
[
">=",
"3.0.3"
]
]
},
{
"name": "openai",
"specs": [
[
">=",
"0.27.0"
]
]
},
{
"name": "tiktoken",
"specs": [
[
">=",
"0.3.0"
]
]
}
],
"lcname": "llano"
}