Learn R Programming

akc (version 0.9.9.1)

make_dict: Making one's own dictionary

Description

Construting a dictionary using a string vector with user defined vocabulary.

Usage

make_dict(dict_vacabulary_vector)

Value

A data.table with document id and keyword,using keyword as the key.

Arguments

dict_vacabulary_vector

A character vector containing the user defined professional vocabulary.

Details

Build a user defined vocabulary for keyword extraction (keyword_extract).

See Also

keyword_extract

Examples

Run this code
library(akc)
library(dplyr)

bibli_data_table %>%
  keyword_clean() %>%
  pull(keyword) %>%
  make_dict() -> dict

Run the code above in your browser using DataLab