Fastest configurable Indo European Language Tokenizer on earth based on double array trie & ac automata.
Add this to your application's shard.yml
:
dependencies:
crytok:
github: chenkovsky/crytok
require "crytok"
require "crytok/langs/en"
tokenizer = CryTok.build_en # a simple english tokenizer
# if you want to change the tokenize rule, look the implementation of 'build_en'
File.open(ARGV[0]) do |fi|
File.open(ARGV[1], "w") do |fo|
tokenizer.tokenized(fi, fo)
end
end
TODO: Write development instructions here
- Fork it (https://github.com/chenkovsky/crytok/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
- chenkovsky chenkovsky - creator, maintainer