A package using clip to extrac S,V,O
Project description
svo-extract
利用CKIP套件將句子中的核心結構抓出(主詞S,動詞V,受詞O)
安裝及使用
使用pip安裝
pip install svo-extract
使用方式
from svo_extract import svo
SVO = svo()
SVO.svo(sent_list=sentence_list)
sentence_list = [
"我看見小豬殺了他爸爸",
"我買了一杯大杯的珍珠奶茶",
"包子被我吃掉了",
]
SVO.svo(sent_list=sentence_list)
輸出:
[('豬', '殺', '他爸爸'), ('我', '買', '珍珠奶茶'), ('我', '吃掉', '包子')]
目的
將句子中的核心主體元素提取出來,而根據所需場景的情況下有絕大多數情況可以透過核心三元素——動作主體、動作、動作客體這三個來表達。
方法
使用CKIP中的POS方式將輸入句子進行詞性標注,之後根據句子主被動格式區分不同提取方式
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
svo-extract-0.0.2.tar.gz
(2.9 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
File details
Details for the file svo-extract-0.0.2.tar.gz.
File metadata
- Download URL: svo-extract-0.0.2.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec62a3f738cad7107723fedc2b7be4a7cafb2df5618a6425879b551c70429898
|
|
| MD5 |
af0414dca4b72e0cb7151230f8a296e8
|
|
| BLAKE2b-256 |
d2adb249479977c8764cdc702106b53980cab6739a7dd005aa512b66dbf1fe58
|
File details
Details for the file svo_extract-0.0.2-py3-none-any.whl.
File metadata
- Download URL: svo_extract-0.0.2-py3-none-any.whl
- Upload date:
- Size: 15.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e43e02984006d00284b244e0fd52b7e0874648d403472bf0fbd38761d22c92f3
|
|
| MD5 |
da11b00314abcbfd50d263861f21888e
|
|
| BLAKE2b-256 |
be35460188f514408f5ea21ce892495e6d2e1c4a474a9a160b4b2c204a726e0c
|