ASA Python
Japanese Argument Structure Analyzer (ASA) client for Python.
It requires ASA (available at http://www.cl.cs.okayama-u.ac.jp/study/project/asa/asa-scala/download/ ; Written in Japanese), CaboCha (https://taku910.github.io/cabocha/), and MeCab (http://taku910.github.io/mecab/).
For details about ASA, See http://www.cl.cs.okayama-u.ac.jp/study/project/asa/ (Written in Japanese)
Contributions are welcome!
Installation
mkdir asa cd asa wget http://www.cl.cs.okayama-u.ac.jp/wp-content/uploads/2017/05/asa20170503.tgz tar xzf asa20170503.tgz pip install asa
Example
from asa import ASA
# Initialize a ASA instance
analyzer = ASA(path-to-asa)
# Let's analyze a sample sentence
analyzer.parse('彼は村長だ')
# =>
[{'ID': 0,
'category': '人',
'frame': '1-copula',
'link': 1,
'main': '彼',
'part': 'は',
'tense': 'PRESENT',
'type': 'elem',
'wakati': ['彼\tカレ\t彼\t名詞,代名詞,一般\t\t\tO', 'は\tハ\tは\t助詞,係助詞\t\t\tO']},
{'ID': 1,
'category': '人',
'frame': '0-elem',
'link': -1,
'main': '村長',
'mood': 'INDICATIVE',
'part': 'だ',
'polarity': 'AFFIRMATIVE',
'sentelem': 'PREDICATE',
'tense': 'PRESENT',
'type': 'copula',
'voice': 'ACTIVE',
'wakati': ['村長\tソンチョウ\t村長\t名詞,一般\t\t\tO', 'だ\tダ\tだ\t助動詞\t特殊・ダ\t基本形\tO']}]
LICENSE
MIT License
Copyright
ASA Python (c) 2017- Yukino Ikegami. All Rights Reserved.
ASA (Original version) (c) Okayama University Takeuchi Lab.
ACKNOWLEDGEMENT
This module uses 意味役割付与システム (ASA) I thank to Okayama University Takeuchi Lab.
CHANGES
0.2 (2019-02-16)
Decrease parse() method of processing time (It makes about 36 times faster)
0.1.5 (2017-09-26)
Delete encoding option.
0.1.3 (2017-09-14)
First release.
Metadata
Release files for asa 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 |
|---|---|---|---|---|
| asa-0.2.tar.gz | 3.9 kB | Without provenance | Details for asa-0.2.tar.gz |
Release files / asa-0.2.tar.gz
| Download URL | asa-0.2.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1e15a065c9084ad88d967c1573d9e0389dd4511a2706544fcbcb8883e315df1f
|
|
BLAKE2b-256 checksum How to use checksums |
5e9e66526786603ce01de8dfe630c6379bff66986c72b0c4ebdfc6b2a949446f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.8.1 pkginfo/1.4.1 requests/2.14.2 setuptools/40.7.3 requests-toolbelt/0.7.0 clint/0.5.1 CPython/3.6.0 Darwin/18.2.0
|
Security for asa 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.