Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ikegami-yukino/asa-python
Japanese Argument Structure Analyzer (ASA) client for Python
https://github.com/ikegami-yukino/asa-python
japanese-language natural-language-processing parser
Last synced: 4 months ago
JSON representation
Japanese Argument Structure Analyzer (ASA) client for Python
- Host: GitHub
- URL: https://github.com/ikegami-yukino/asa-python
- Owner: ikegami-yukino
- License: mit
- Created: 2017-09-13T13:02:46.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-16T14:52:32.000Z (almost 6 years ago)
- Last Synced: 2024-10-11T14:38:17.767Z (4 months ago)
- Topics: japanese-language, natural-language-processing, parser
- Language: Python
- Homepage: http://www.cl.cs.okayama-u.ac.jp/study/project/asa/
- Size: 11.7 KB
- Stars: 11
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGES.rst
- License: LICENSE
Awesome Lists containing this project
README
ASA Python
===================|pyversion| |version| |license|
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 asaExample
===========.. code:: python
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... |pyversion| image:: https://img.shields.io/pypi/pyversions/asa.svg
.. |version| image:: https://img.shields.io/pypi/v/asa.svg
:target: http://pypi.python.org/pypi/asa/
:alt: latest version.. |license| image:: https://img.shields.io/pypi/l/asa.svg
:target: http://pypi.python.org/pypi/asa/
:alt: license