Returns all dictionary information under the current configuration.
Details
To use the tokenize()
function, there should be a system dictionary for 'MeCab'
specified in some 'mecabrc' configuration files
with a line dicdir=<path/to/dir/dictionary/included>
.
This function can be used to check if such a configuration file exists.
Currently, this package detects 'mecabrc' configuration files
that are stored in the user's home directory
or the file specified by the MECABRC
environment variable.
If there are no such configuration files, the package tries to fall back to the 'mecabrc' file that is included with default installations of 'MeCab', but this fallback is not guaranteed to work in all cases.
In case there are no 'mecabrc' files available at all, this function will return an empty data.frame.
Note that in this case, the tokenize()
function will not work
even if a system dictionary is manually specified via the sys_dic
argument.
In such a case, you should mock up a 'mecabrc' file to temporarily use the dictionary.
See examples for build_sys_dic()
and build_user_dic()
for details.