Skip to contents

Workers

Create and configure jiebaRS workers.

worker()
Initialize a jiebaRS worker

Segmentation

Segment Chinese text into tokens.

segment()
Segment text with a jieba worker
segment_batch()
Segment a batch of strings

Part-of-Speech Tagging

Tag segmented text with part-of-speech labels.

tagging()
Tag text with a jiebaRS worker
tagging_batch()
Tag a batch of strings

Keyword Extraction

Extract keywords with TF-IDF and TextRank.

keywords()
Extract keywords from text
keywords_df()
Extract keywords as a data frame
textrank()
Extract TextRank keywords from text
textrank_df()
Extract TextRank keywords as a data frame
get_idf()
Generate IDF dict

User Dictionaries

Add, import, and inspect custom dictionaries.

new_user_word() add_word()
Add user word
import_cidian()
Import an input-method dictionary into a worker
read_cidian()
Read an input-method dictionary as a data frame

Token Utilities

Filter tokens and calculate frequencies or n-grams.

filter_segment()
Filter segmentation results
freq()
The frequency of words
count_ngrams()
Count n-grams from segmented text

Built-in Data

stopwords_cn stopwords_en stopwords_full
Built-in stopword lists