Project

asiasearch

0.01
No commit activity in last 3 years
No release in over 3 years
Yahoo Asia Search provides user an interface for automated semantic analysis and language treatment.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

Yahoo Asia Search a.k.a Yahoo!搜尋『斷章取義』

Description

Yahoo Asia Search provides user an interface for automated semantic analysis and language treatment.

You must [register first](http://developer.yahoo.com/wsregapp/index.php) to get API key.
Then [activate it](http://asia.search.yahooapis.com/cas/v1/AuthBootUp.php?appid=APIKEY).

You can get more detail on [Officical Site] (http://tw.developer.yahoo.com/cas/api.php).

Install

rails g asiasearch

It will automate generate indextank.yml to your config/ directory. Please fill up your information.*

*2. Include AsiaSearch::Base in your model


class Topic < ActiveRecord::Base
  include Railstank::Search
  has_keyword :content
end

3. How to get keyword


Topic.last.ke(5)

It will return array.


     => [{"token"=>"暗棋", "score"=>181.203937}, {"token"=>"下棋", "score"=>167.834379}, {"token"=>"iphone", "score"=>139.64361}, {"token"=>"網路連線", "score"=>137.115998}, {"token"=>"遊戲", "score"=>123.237589}, {"token"=>"玩家", "score"=>110.649053}, {"token"=>"app", "score"=>80.2954323}, {"token"=>"對手", "score"=>70.3604531}, {"token"=>"雙人", "score"=>69.4245914}, {"token"=>"好友", "score"=>64.2127734}, {"token"=>"比賽", "score"=>64.1604035}, {"token"=>"網路", "score"=>62.0883974}, {"token"=>"對決", "score"=>50.1022393}, {"token"=>"連線", "score"=>50.0287451}, {"token"=>"到期", "score"=>50.0128105}, {"token"=>"模式", "score"=>49.8294466}, {"token"=>"利用", "score"=>49.1433447}, {"token"=>"提供", "score"=>48.9973186}, {"token"=>"game", "score"=>48.9104876}, {"token"=>"online", "score"=>45.9753276}] 

Contributing to AsiaSearch

  • Check out the latest master to make sure the feature hasn’t been implemented or the bug hasn’t been fixed yet
  • Check out the issue tracker to make sure someone already hasn’t requested it and/or contributed it
  • Fork the project
  • Start a feature/bugfix branch
  • Commit and push until you are happy with your contribution
  • Make sure to add tests for it. This is important so I don’t break it in a future version unintentionally.
  • Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.

Copyright

Copyright © 2011 xdite(xuite.joke@gmail.com) See LICENSE.txt for
further details.