Description Usage Arguments References Examples
Runs the repair on a string.
1 |
str |
the input string. |
N.J. Larsson and A. Moffat. Offline dictionary-based compression. In Data Compression Conference, 1999.
1 | str_to_repair_grammar("abc abc cba cba bac xxx abc abc cba cba bac")
|
Loading required package: Rcpp
[[1]]
[[1]]$rule_name
[1] "R0"
[[1]]$rule_string
[1] "R4 xxx R4"
[[1]]$expanded_rule_string
[1] "abc abc cba cba bac xxx abc abc cba cba bac "
[[1]]$rule_interval_starts
[1] -1
[[1]]$rule_interval_ends
[1] 10
[[2]]
[[2]]$rule_name
[1] "R1"
[[2]]$rule_string
[1] "R1"
[[2]]$expanded_rule_string
[1] "abc abc"
[[2]]$rule_interval_starts
[1] 6 0
[[2]]$rule_interval_ends
[1] 7 1
[[3]]
[[3]]$rule_name
[1] "R2"
[[3]]$rule_string
[1] "R2"
[[3]]$expanded_rule_string
[1] "abc abc cba"
[[3]]$rule_interval_starts
[1] 0 6
[[3]]$rule_interval_ends
[1] 2 8
[[4]]
[[4]]$rule_name
[1] "R3"
[[4]]$rule_string
[1] "R3"
[[4]]$expanded_rule_string
[1] "abc abc cba cba"
[[4]]$rule_interval_starts
[1] 6 0
[[4]]$rule_interval_ends
[1] 9 3
[[5]]
[[5]]$rule_name
[1] "R4"
[[5]]$rule_string
[1] "R4"
[[5]]$expanded_rule_string
[1] "abc abc cba cba bac"
[[5]]$rule_interval_starts
[1] 0 6
[[5]]$rule_interval_ends
[1] 4 10
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.