Skip to content

Commit

Permalink
add new units and types
Browse files Browse the repository at this point in the history
  • Loading branch information
lfoppiano committed Feb 9, 2024
1 parent 49b5d7e commit 82aa588
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/main/java/org/grobid/core/utilities/UnitUtilities.java
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ public enum Unit_Type {
ATOMIC_RATIO("atomic ratio"),
WEIGHT_RATIO("weight ratio"),
MASS_ACCUMULATION_RATE("mass accumulation rate"),
SEDIMENTATION_RATE("sedimentation rate");;
SEDIMENTATION_RATE("sedimentation rate"),
ROTATION("rotation");

private String name;

Expand Down
32 changes: 31 additions & 1 deletion src/main/resources/lexicon/en/units.json
Original file line number Diff line number Diff line change
Expand Up @@ -1347,6 +1347,9 @@
{
"raw": "rpm"
},
{
"raw": "RPM"
},
{
"raw": "round/min",
"product": [
Expand All @@ -1358,16 +1361,43 @@
"pow": "-1"
}
]
},
{
"raw": "rev/min",
"product": [
{
"base": "rev"
},
{
"base": "min",
"pow": "-1"
}
]
},
{
"raw": "r/min",
"product": [
{
"base": "r"
},
{
"base": "min",
"pow": "-1"
}
]
}
],
"type": "FREQUENCY",
"type": "ROTATION",
"system": "NON_SI",
"names": [
{
"lemma": "round per minute",
"inflections": [
"rounds per minute"
]
},
{
"lemma": "number of revolutions"
}
]
},
Expand Down

0 comments on commit 82aa588

Please sign in to comment.