Skip to content

Commit

Permalink
add more units in the lexicon
Browse files Browse the repository at this point in the history
  • Loading branch information
lfoppiano committed Aug 4, 2023
1 parent b1b2f9c commit 9291cbe
Show file tree
Hide file tree
Showing 2 changed files with 208 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/org/grobid/core/utilities/UnitUtilities.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ public enum Unit_Type {
ELECTRIC_CONDUCTANCE("electric conductance"),
ELECTRIC_FIELD("electric field"),
MAGNETIC_FLUX("magnetic flux"),
MAGNETIZATION("magnetization"),
MASS_MAGNETIZATION("mass magnetization"),
MAGNETIC_FLUX_DENSITY("magnetic flux density"),
MAGNETIC_INDUCTION("magnetic induction"),
MAGNETIC_FIELD_STRENGTH("magnetic field strength"),
Expand Down Expand Up @@ -102,6 +104,7 @@ public enum Unit_Type {
ATOM_MASS_UNIT("atom mass unit"),
PACE("pace"),
MAXIMUM_ENERGY_PRODUCT("maximum energy product"),
ENERGY_DENSITY("energy density"),
ATOMIC_RATIO("atomic ratio"),
WEIGHT_RATIO("weight ratio"),
MASS_ACCUMULATION_RATE("mass accumulation rate"),
Expand Down
205 changes: 205 additions & 0 deletions src/main/resources/lexicon/en/units.json
Original file line number Diff line number Diff line change
Expand Up @@ -2374,6 +2374,211 @@
}
]
},
{
"notations": [
{
"raw": "erg",
"product": [
{
"base": "erg"
}
]
},
{
"raw": "g cm2/s2",
"product": [
{
"base": "g"
},
{
"prefix": "c",
"base": "m",
"pow": "2"
},
{
"base": "s",
"pow": "-2"
}
]
},
{
"raw": "g⋅cm2/s2",
"product": [
{
"base": "g"
},
{
"prefix": "c",
"base": "m",
"pow": "2"
},
{
"base": "s",
"pow": "-2"
}
]
}
],
"type": "ENERGY",
"system": "CGS",
"supportsPrefixes": false,
"names": [
{
"lemma": "ergon",
"inflection": "ergons"
}
]
},
{
"notations": [
{
"raw": "erg/G",
"product": [
{
"base": "erg"
},
{
"base": "G",
"pow": "-1"
}
]
},
{
"raw": "J/T",
"product": [
{
"base": "J"
},
{
"base": "G",
"pow": -1
}
]
}
],
"type": "MAGNETIC_MOMENT",
"system": "CGS",
"supportsPrefixes": false,
"names": [
{
"lemma": "magnetic moment"
}
]
},
{
"notations": [
{
"raw": "emu/g",
"product": [
{
"base": "emu"
},
{
"base": "g",
"pow": -1
}
]
}
],
"type": "MASS_MAGNETIZATION",
"system": "CGS",
"supportsPrefixes": false,
"names": [
{
"lemma": "mass magnetization"
},
{
"lemma": "mass magnetisation"
},
{
"lemma": "specific magnetization"
},
{
"lemma": "specific magnetisation"
}
]
},
{
"notations": [
{
"raw": "erg/G cm3",
"product": [
{
"base": "erg"
},
{
"base": "G"
},
{
"prefix": "c",
"base": "m",
"pow": -3
}
]
},
{
"raw": "emu/cm3",
"product": [
{
"base": "emu"
},
{
"prefix": "c",
"base": "m",
"pow": -3
}
]
},
{
"raw": "emu/cm^3",
"product": [
{
"base": "emu"
},
{
"prefix": "c",
"base": "m",
"pow": -3
}
]
}
],
"type": "MAGNETIZATION",
"system": "CGS",
"supportsPrefixes": false,
"names": [
{
"lemma": "electromagnetic unit",
"inflection": "electromagnetic units"
}
]
},
{
"notations": [
{
"raw": "erg/cm",
"product": [
{
"base": "erg"
},
{
"prefix": "c",
"base": "m",
"pow": -1
}
]
}
],
"type": "ENERGY_DENSITY",
"system": "CGS",
"supportsPrefixes": false,
"names": [
{
"lemma": "ergon per centimeter",
"inflection": "ergon per centimeters"
}
]
},
{
"notations": [
{
Expand Down

0 comments on commit 9291cbe

Please sign in to comment.