Module: YaCan::Dependency
- Defined in:
- lib/yacan/dependency.rb
Defined Under Namespace
Classes: Chunk, Morphem, Result
Constant Summary
collapse
- @@path =
'/DAService/V1/parse'
Class Method Summary
collapse
Class Method Details
.analyze(text) ⇒ Object
5
6
7
8
|
# File 'lib/yacan/dependency.rb', line 5
def analyze(text)
xml = YaCan::YahooAPI.request(@@path, { 'sentence' => text })
return Result.new(xml)
end
|
.parse(text) ⇒ Object
10
11
12
|
# File 'lib/yacan/dependency.rb', line 10
def parse(text)
analyze(text)
end
|