Skip to content
Compare sentences using Machine Translation and Text Summarization evaluation metrics
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
R
data-raw
data
inst
man
tests re-did BLEU function to take lists as argument and associated unit test Mar 10, 2019
vignettes
.Rbuildignore
.gitignore
.travis.yml
DESCRIPTION
LICENSE
LICENSE.md
NAMESPACE
README.Rmd
README.md
footrulr.Rproj

README.md

footrulr

The goal of footrulr is to provide some functionality to compute sentence comparisons using metrics frequently employed in Machine Translation and Text Summarization evaluation.

The name is inspired from Rstudio’s yardstick package for Machine Learning evaluation metrics.

Installation

You can install the development version of footrulr from github with:

# install.packages("devtools")
devtools::install_github("kanishkamisra/footrulr")

Example

This is a basic example which shows you how to solve a common problem:

library(footrulr)

bleu_vec("the cat the cat on the mat", c("the cat is on the mat", "there is a cat on the mat"), n = 3)
#> [1] 0.4
bleu_vec("The dragon ate dragon the pineapple", c("A dragon ate a pineapple", "The pineapple was eaten by the dragon"), n = 1)
#> [1] 0.8333333

Contributors at chirunconf

You can’t perform that action at this time.