Skip to content

This is an interactive web application that suggests semantic types for units of measurement, supports their transformations, and allows working with spreadsheet files.

License

Notifications You must be signed in to change notification settings

basels/ccut-wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CCUT Wrapper

Wrapper infrastructure (UI/Evaluation) for CCUT, a framework for the identification and transformation of units of measure.

This repository provides the following:

  • Allows running the CCUT service (parsing, transformation) over a UI
  • Allows generating and creating annotation files (json) for spreadsheets
  • Provides additional validation tools to run CCUT over spreadsheets (xlsx) and validate them (json)

Installation

With pip:

pip install -r requirements.txt

UI:

How to run:

python ui/api.py

Navigate to http://localhost:localport/ (usually set as http://0.0.0.0:5000/).
The UI allows performing the following operations over the browser:

Parse a string (get unit representation)

Convert strings (get units transformation)

Extract units from xlsx (get a suggested json annotation file)

Annotate json (upload and edit existing json annotation file)

Spreadsheets Validator:

Generate a json dictionary file of detected units

Run ccut_sheets.py over an xlsx file. As in:

python ui/ccut_sheets.py -i my_spreadsheet.xlsx

This will produce a file called my_spreadsheet.ccut.json

Validate a directory of spreadsheets files and their json results files

Run ccut_sheets_validator.py over a directory of xlsx files and their matching jsons. As in:

python ui/ccut_sheets_validator.py -d my_dir/

About

This is an interactive web application that suggests semantic types for units of measurement, supports their transformations, and allows working with spreadsheet files.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published