https://github.com/clulab/normit
The normit library normalizes information in text: times, locations, etc.
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
✓DOI references
Found 1 DOI reference(s) in README -
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (7.9%) to scientific vocabulary
Repository
The normit library normalizes information in text: times, locations, etc.
Basic Info
- Host: GitHub
- Owner: clulab
- License: apache-2.0
- Language: Python
- Default Branch: main
- Homepage: https://normit.readthedocs.io
- Size: 9.65 MB
Statistics
- Stars: 1
- Watchers: 6
- Forks: 0
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
normit
The normit library normalizes information in text: times, locations, etc.
For times, it provides an interface inspired by the SCATE schema of Bethard and Parker (2016). For example, the following code finds the first Friday the 13th after November 21, 2024.
```pycon
from normit.time import * Next( ... Interval.of(2024, 11, 21), ... RepeatingIntersection([ ... Repeating(DAY, WEEK, value=4), # Friday ... Repeating(DAY, MONTH, value=13), # the 13th ... ]) ... ).isoformat() '2024-12-13T00:00:00 2024-12-14T00:00:00' ```
For locations, it provides an interface inspired by the GeoCoDe dataset of Laparra and Bethard (2020). For example, the following code finds the region that is 50km northwest of Tucson and 90km southeast of Phoenix. ```pycon
from normit.geo import * georeader = GeoJsonDirReader(...) tucson = georeader.read(253824) phoenix = georeader.read(111257) Intersection.of( ... NorthWest.of(tucson, 50 * UNITS.km), ... SouthEast.of(phoenix, 90 * UNITS.km))
```
Citation
If you use the time operators, please cite:
bibtex
@inproceedings{bethard-parker-2016-semantically,
title = "A Semantically Compositional Annotation Scheme for Time Normalization",
author = "Bethard, Steven and
Parker, Jonathan",
booktitle = "Proceedings of the Tenth International Conference on Language Resources and Evaluation ({LREC}'16)",
month = may,
year = "2016",
address = "Portoro{\v{z}}, Slovenia",
publisher = "European Language Resources Association (ELRA)",
url = "https://aclanthology.org/L16-1599",
pages = "3779--3786",
}
If you use the geographical operators, please cite:
bibtex
@inproceedings{laparra-bethard-2020-dataset,
title = "A Dataset and Evaluation Framework for Complex Geographical Description Parsing",
author = "Laparra, Egoitz and
Bethard, Steven",
booktitle = "Proceedings of the 28th International Conference on Computational Linguistics",
month = dec,
year = "2020",
address = "Barcelona, Spain (Online)",
publisher = "International Committee on Computational Linguistics",
url = "https://aclanthology.org/2020.coling-main.81",
doi = "10.18653/v1/2020.coling-main.81",
pages = "936--948",
}
Owner
- Name: Computational Language Understanding Lab (CLU Lab) at University of Arizona
- Login: clulab
- Kind: organization
- Location: Tucson, AZ
- Website: http://clulab.org
- Repositories: 72
- Profile: https://github.com/clulab
GitHub Events
Total
- Watch event: 1
- Push event: 40
- Create event: 1
Last Year
- Watch event: 1
- Push event: 40
- Create event: 1
Dependencies
- geopandas *
- matplotlib *
- pint *
- pyproj *
- python-dateutil *
- shapely *
- utm *
- actions/checkout v4 composite
- actions/setup-python v5 composite
- myst_parser ==4.0.0
- sphinx ==8.1.3
- sphinx-rtd-theme ==3.0.2