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方式將輸入句子進行詞性標注,之後根據句子主被動格式區分不同提取方式
Metadata
Release files for svo-extract 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| svo-extract-0.0.2.tar.gz | 2.9 kB | Without provenance | Details for svo-extract-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| svo_extract-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for svo_extract-0.0.2-py3-none-any.whl |
Total release size: 18.2 kB
Release files / svo-extract-0.0.2.tar.gz
| Download URL | svo-extract-0.0.2.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ec62a3f738cad7107723fedc2b7be4a7cafb2df5618a6425879b551c70429898
|
|
BLAKE2b-256 checksum How to use checksums |
d2adb249479977c8764cdc702106b53980cab6739a7dd005aa512b66dbf1fe58
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / svo_extract-0.0.2-py3-none-any.whl
| Download URL | svo_extract-0.0.2-py3-none-any.whl |
|---|---|
| Size | 15.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e43e02984006d00284b244e0fd52b7e0874648d403472bf0fbd38761d22c92f3
|
|
BLAKE2b-256 checksum How to use checksums |
be35460188f514408f5ea21ce892495e6d2e1c4a474a9a160b4b2c204a726e0c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for svo-extract 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.