bindbc-mecab 1.0.0

A binding for MeCab


To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:

bindbc-mecab

This project provides dynamic and static bindings to the C API of MeCab. The bindings are @nogc and nothrow compatible and can be compiled for compatibility with -betterC.

Usage

By default, bindbc-mecab is configured to compile as a dynamic binding that is not -betterC compatible. The dynamic binding has no link-time dependency on the library, so the shared library must be manually loaded at runtime.

To use MeCab, add bindbc-mecab as a dependency to your project's package config file. For example, the following is configured to use MeCab as a dynamic binding that is not -betterC compatible:

dub.json

"dependencies": {
    "bindbc-mecab": "~>1.0.0",
}

dub.sdl

dependency "bindbc-mecab" version="~>1.0.0"

Load Library

const support = loadMeCab();
if (support != MeCabSupport.mecab)
{
    writeln("Failed to load the library");
    return;
}
scope (exit)
    unloadMeCab();
Authors:
  • lempiji
Dependencies:
bindbc-loader
Versions:
1.0.0 2020-Jul-24
~master 2020-Jul-24
Show all 2 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 0 downloads this month

  • 19 downloads total

Score:
0.6
Short URL:
bindbc-mecab.dub.pm