Skip to content

bereilhp/tokscore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tokscore

Token-level precision, recall and F1 for text comparisons.

Install

npm install tokscore

Usage

import compare from 'tokscore';

const result = compare('hello world', 'hello world');
// { precision: 1, recall: 1, f1: 1 }

const result = compare('hello world foo', 'hello world');
// { precision: 1, recall: 0.667, f1: 0.8 }

About

Token-level precision, recall and F1 for text comparisons.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors