A text processing tools
Project description
liyi_cute: Text Tools
liyi_cute 是文本辅助工具,帮助NlPer减少模型输入前的预处理工作
online documentation:the read docs
Usage:
python setup.py install
pip install liyi_cute
install packages
pip install -r requirements.txt
数据结构
{
"id": 1,
"document": "xxxx",
"": ""
}
信息抽取
实体抽取, 关系抽取,事件抽取, 属性抽取 以brat标注为例子: 标注文件开头标志 Entity: T
[entities]
Protein
Entity
T8 Negative_regulation 659 668 deficient
T9 Gene_expression 684 694 expression
{
"entities":[{"mention": "expression",
"type": "Gene_expression",
"start": 447,
"end": 457,
"id": "T1"}]
}
Rlation: R
[relations]
Protein-Component Arg1:Protein, Arg2:Entity
Subunit-Complex Arg1:Protein, Arg2:Entity
R1 Protein-Component Arg1:T11 Arg2:T19
R2 Protein-Component Arg1:T11 Arg2:T18
## 暂时不支持
Equiv Arg1:Protein, Arg2:Protein, <REL-TYPE>:symmetric-transitive
* Equiv T3 T4
{"relations": [{"type": "Part-of",
"arg1": {"mention": "c-Rel","type": "Protein","start": 139,"end": 144,"id": "T1"},
"arg2": {"mention": "NF-kappa B","type": "Complex", "start": 163, "end": 173, "id": "T2"},
"id": "R1"}]}
Event: E 暂时不支持
[events]
Gene_expression Theme:Protein
Binding Theme+:Protein
E3 Binding:T9 Theme:T4 Theme2:T5 Theme3:T6
E4 Binding:T20 Theme:T16 Theme2:T17 Theme3:T19
## 暂时不支持
E6 Negative_regulation:T10 Cause:E3 Theme:E5
Attribute: A 暂时不支持
[attributes]
Negation Arg:<EVENT>
Confidence Arg:<EVENT>, Value:Possible|Likely|Certain
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
liyi-cute-0.0.6.tar.gz
(32.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
liyi_cute-0.0.6-py3-none-any.whl
(42.6 kB
view details)
File details
Details for the file liyi-cute-0.0.6.tar.gz.
File metadata
- Download URL: liyi-cute-0.0.6.tar.gz
- Upload date:
- Size: 32.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.7.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
edbdec5cf073e29e6f3a299607269c63003ace2f8cf0d51935480d9082495233
|
|
| MD5 |
81b8f06bd333b1cd2cd8ee6f87005302
|
|
| BLAKE2b-256 |
5caa2d486e2a927842524d91a6258a5215e085aae40880d5bdb4fb8ab58d3243
|
File details
Details for the file liyi_cute-0.0.6-py3-none-any.whl.
File metadata
- Download URL: liyi_cute-0.0.6-py3-none-any.whl
- Upload date:
- Size: 42.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.7.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
775a8d116aefb27aa02da770ef5bf7792d6d2d1de42ff04d606d3370ceaee9fb
|
|
| MD5 |
419d734a6f038f8c550116d2de461e22
|
|
| BLAKE2b-256 |
667552c5d2cc1210636def169b936289e8674d931d641d0763bb8891b5a93573
|