Module: LinkParser
- Defined in:
- lib/linkparser.rb,
lib/linkparser/mixins.rb,
ext/dictionary.c,
ext/linkparser.c
Overview
The LinkParser top-level namespace.
Defined Under Namespace
Modules: DeprecationUtilities Classes: Dictionary, Error, Linkage, ParseOptions, Sentence
Constant Summary collapse
- VERSION =
Release version
'1.1.2'
Class Method Summary collapse
-
.link_grammar_version ⇒ String
Return the version of the link-grammar library the binding is linked against.
Class Method Details
.link_grammar_version ⇒ String
Return the version of the link-grammar library the binding is linked against.
89 90 91 92 93 94 95 96 97 98 |
# File 'ext/linkparser.c', line 89
static VALUE
rlink_link_grammar_version( VALUE self ) {
#ifdef HAVE_LINKGRAMMAR_GET_VERSION
const char *version = linkgrammar_get_version();
if ( !version ) rb_bug( "linkgrammar_get_version returned NULL pointer" );
return rb_str_new2( version );
#else
return rb_str_new2( "link-grammar-4.3.9-or-earlier" );
#endif /* HAVE_LINKGRAMMAR_GET_VERSION */
}
|