cld3-ruby
cld3-ruby is an interface of Compact Language Detector v3 (CLD3) for Ruby.
Installation
Prerequisites
- Bundler
- C++ compiler
- Protocol buffers
- Rake
- RubyGems
Instructions
Rakefile
includes a Rake task to put this code into files buildable as a gem.
Build a gem with rake
command.
Troubleshooting Setup Problems
I (Akihiko Odaki) recommend to setup this library installing via gem
.
gem install cld3
triggers native library building. If it fails, you are likely
to missing required facilities. Make sure C++ compiler and protocol buffers
is installed. I recommend GCC as a C++ compiler. Ruby is
likely to need pkg-config
as well.
Runtime errors are likely to be issues of FFI or programming errors. Make sure they are all correct.
If you cannot identify the cause of your problem, run spec of this library and
see whether the problem is reproducable with it or not. Spec is not included in
the gem, so clone the source code repository and then run rake spec
.
The source code repository is at
https://github.com/akihikodaki/cld3-ruby.
In case you cannot solve your problem by yourself and cannot help abandoning or find an issue in this library, please open an issue at https://github.com/akihikodaki/cld3-ruby/issues.
If you found an issue and managed to fix it and agree to share the fix under Apache-2.0, please open a pull request at https://github.com/akihikodaki/cld3-ruby/pulls. Your contribution would be appreciated by other users and recorded with Git.
Versioning
The version has 3 parts: major, minor, and patch. They are joined with . as delimiters in the order.
The increment of the major version and the minor version indicates it can involve any change.
The increment of the patch version indicates there is no change of the supported
languages and no change of the existing APIs except CLD3::Unstable
.
Contact
To ask questions or report issues please open issues at https://github.com/akihikodaki/cld3-ruby/issues.
Credits
This program was written by Akihiko Odaki. CLD3 was written by its own authors.