lexicoR provides access to Chinese Wordnet by wrapping CwnGraph, a python package to query Chinese Wordnet.

In order to use this functionality, you need to have Python 3 installed on the computer.

Load CwnGraph into R

The code below exposes cwn (python object) to the R environment:

library(lexicoR)
load_cwn(python_path = "/usr/bin/python3", type = "python")

You can also use a virtual environment provided by virtualenv (on Linux or Mac) or conda (on Windows):

load_cwn(python_path = "path/to/virtualenv/dir", type = "virtualenv")

Query lemma and senses in Chinese Wordnet

Query by lemma

Query by sense