A package to use pullword. Written in Crystal.
Add this to your application's shard.yml
:
dependencies:
pullword:
github: googya/pullword
require "pullword"
Pullword.pullword("湖北大学城市学院是个好学院", 0.6)
# => ["湖北:0.817187", "湖北大学:1", "北大:0.727944", "北大学城:0.959108", "大学:0.803232", "大学城:0.930259", "城市:0.821246", "城市学院:0.878604", "学院:0.820484", "是个:0.643618", "学院:0.93359"]
When developing Crystal project, you may want some debugging tools like irb in Ruby. Luckly, there is one, crystal-icr
- Fork it ( https://github.com/googya/pullword/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
- googya leslie.wen - creator, maintainer