{"id":18598096,"url":"https://github.com/ggordonhall/measurement_tagger","last_synced_at":"2026-05-03T05:39:05.960Z","repository":{"id":131361804,"uuid":"152751226","full_name":"ggordonhall/measurement_tagger","owner":"ggordonhall","description":"Spacy Measurement Tagger","archived":false,"fork":false,"pushed_at":"2018-12-13T15:40:16.000Z","size":86,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-17T23:47:21.243Z","etag":null,"topics":["dependency-parser","measurement-tagger","nlp","python","spacy","tagger"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ggordonhall.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-10-12T13:01:13.000Z","updated_at":"2020-12-25T23:02:22.000Z","dependencies_parsed_at":"2023-07-31T19:45:16.838Z","dependency_job_id":null,"html_url":"https://github.com/ggordonhall/measurement_tagger","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ggordonhall%2Fmeasurement_tagger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ggordonhall%2Fmeasurement_tagger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ggordonhall%2Fmeasurement_tagger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ggordonhall%2Fmeasurement_tagger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ggordonhall","download_url":"https://codeload.github.com/ggordonhall/measurement_tagger/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254544159,"owners_count":22088808,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dependency-parser","measurement-tagger","nlp","python","spacy","tagger"],"created_at":"2024-11-07T01:30:47.919Z","updated_at":"2026-05-03T05:39:00.932Z","avatar_url":"https://github.com/ggordonhall.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Measurement Tagger\n[![Build Status](https://travis-ci.org/ggordonhall/measurement_tagger.png)](https://travis-ci.org/ggordonhall/measurement_tagger)\n[![codecov](https://codecov.io/gh/ggordonhall/measurement_tagger/branch/master/graph/badge.svg)](https://codecov.io/gh/ggordonhall/measurement_tagger)\n\n## A dependency parse based measurement tagger.\n\nText to be tagged should be stored in the `text/` directory. The file to tag is specific with `-t`.\n\nRun in mode (`-m`):\n\n| Mode    | Measurement   |\n| --------|:-------------:|\n| `d`     | Distance      |\n| `t`     | Time          |\n| `m`     | Mass          |\n| `e`     | Energy        |\n| `v`     | Volume        |\n\nBy default, tags measurements then convertes them to their standard unit. Unconverted measurements can be returned if run with the `--return_unconverted` flag. The maximum n-gram to search for measurement units, i.e. `nautical miles`, can be set with the \n`--max_gram` flag.\n\nRun `pipenv install \u0026\u0026 python -m spacy download en \u0026\u0026 python -m nltk.downloader wordnet` to setup, then test by running `main.py -m d -t wiki.txt`.\n\n## TO DO\n\n- [ ] Fix `--parallel` flag\n- [x] Improve handling of n-gram measurement units\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fggordonhall%2Fmeasurement_tagger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fggordonhall%2Fmeasurement_tagger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fggordonhall%2Fmeasurement_tagger/lists"}