Usage with OpenRefine - RBGKew/String-Transformers GitHub Wiki
Using String Transformers with OpenRefine.
Installation
- Download and install OpenRefine.
- Download the String Transformers JAR and Apache Commons-Lang3 JAR
- Put both JAR files in OpenRefine's
webapp/extensions/jython/module/MOD-INF/lib
directory - (Re)start OpenRefine.
Usage
- Import your data into OpenRefine.
- Select the heading of the column you wish to transform and choose Edit column → Add column based on this column…
- Select Jython from the Language dropdown
- Use an expression like this:
from org.kew.rmf.transformers import CapitalLettersExtractor
cle = CapitalLettersExtractor()
return cle.transform(value)
- Click OK!
A full list of all Transformers is in the API Documentation.