Skip to content

shadowbq/rb-translator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rb-translator

Note: This is not tokenization, and it is not generally safe.

replace.rb <dictionary> <inputfile> <outputfile>

Quick spike tool to replace a dictionary of terms in text.

./replace.rb test/dic.csv test/longtext.txt test/shorttext.txt

Replaces instances surrounded by spaces, at the beginning of new lines, and prior to (,[,{ characters, and at the end of lines.

Releases

No releases published

Packages

No packages published

Languages