text_similarity_score: Text Similarity Score

Description Usage Arguments Value Author(s) Examples

View source: R/text_similarity_score.R

Description

Generate similarity score between two text

Usage

1
2
3
4
5
6
7
text_similarity_score(
  input_text,
  target_text,
  space = TRUE,
  ignore_case = TRUE,
  score = 0
)

Arguments

input_text

A vector of text that need to be cleaned

target_text

A vector of text as the standard text format

space

A logical indicating whether to include space in the calculation. Default TRUE

ignore_case

A logical indicating whether to ignore case. Default TRUE

score

A numeric value indicating the score accepted as similar. Default 0

Value

A dataframe contain the origital text, target text and the score

Author(s)

Dessy Amirudin

Examples

1
text_similarity_score(c("germany","southkorea"),"South Korea")

dessyamirudin/similaRText documentation built on Oct. 23, 2020, 12:21 a.m.