Skip to main content

Japanese Argument Structure Analyzer (ASA) client for Python

Project description

ASA Python

pyversion latest version license

Japanese Argument Structure Analyzer (ASA) client for Python.

For details about ASA, See http://www.cl.cs.okayama-u.ac.jp/study/project/asa/ (Written in Japanese)

Contributions are welcome!

Installation

pip install asa

Example

from asa import ASA

# Initialize a ASA instance
asa = ASA(path-to-asa, encoding='utf8')

# Let's analyze a sample sentence
asa.parse('彼は村長だ')
# =>
[{'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']},
 {'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

CHANGES

0.1.3 (2017-09-14)

  • First release.

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

asa-0.1.3.tar.gz (3.0 kB view details)

Uploaded Source

File details

Details for the file asa-0.1.3.tar.gz.

File metadata

  • Download URL: asa-0.1.3.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for asa-0.1.3.tar.gz
Algorithm Hash digest
SHA256 2e7429c2ed3f8e11e2eaed2018b51c765d407206291d9f9137d78568492e6e90
MD5 d5fe201b6390a06be6421c0db96972ac
BLAKE2b-256 ac036e7a314123a42a0c2625d99242f226915e7c4f36d5bd32f91872b3581366

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page