Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Japanese Argument Structure Analyzer (ASA) client for Python

License

NotificationsYou must be signed in to change notification settings

ikegami-yukino/asa-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ASA Python

pyversionlatest versionlicense

Japanese Argument Structure Analyzer (ASA) client for Python.

It requires ASA (available athttp://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, Seehttp://www.cl.cs.okayama-u.ac.jp/study/project/asa/ (Written in Japanese)

Contributions are welcome!

Installation

mkdir asacd asawget http://www.cl.cs.okayama-u.ac.jp/wp-content/uploads/2017/05/asa20170503.tgztar xzf asa20170503.tgzpip install asa

Example

fromasaimportASA# Initialize a ASA instanceanalyzer=ASA(path-to-asa)# Let's analyze a sample sentenceanalyzer.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.

About

Japanese Argument Structure Analyzer (ASA) client for Python

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp