quantulum3
quantulum3 copied to clipboard
Library for unit extraction - fork of quantulum for python3
Example: ```python >>> quantulum.parser.parse("0.25 W/(m*k)") [Quantity(0.25, "watt")] ``` See [this issue](https://github.com/marcolagi/quantulum/issues/7) for details
**Describe the bug** Adding custom unit not working for some variations **To Reproduce** Steps to reproduce the behavior: Works.: add_custom_unit(name="pound-mass", surfaces=["lbr"], entity="mass") Doesn't work only for "gr": add_custom_unit(name="gram", surfaces=["grams", "grm",...
**Describe the bug** Areas are misattributed to fuel consumption entity **To Reproduce** ``` from quantulum3 import parser print(parser.parse('I want 2 mm2 of gold leaf and 3 acres of land')) print(parser.parse('I...
**Describe the bug** to_json and to_dict methods don't exist if using package installed from pypi, only directly from github. **To Reproduce** Steps to reproduce the behavior: 1. Install via pypi...
How do I get the raw unit? I'd like to get the `M/L`. Instead, with `quants[0].unit.name` I get `metre per litre`. ``` from quantulum3 import parser quants = parser.parse('solubility is...
**Is your feature request related to a problem? Please describe.** The ambiguity resolver of quantulum is not very good. **Describe the solution you'd like** This may improve by using a...
**Describe the bug** In some cases, the returned span changes when the program is started multiple times. Within one run, the results are always the same. **To Reproduce** Run this...
**Is your feature request related to a problem? Please describe.** The following structure "this means that the plant can withstand a minimum temperature of 30 °F (−1.1 °C) to 40 ...
**Describe the bug** the following program results in different outputs on different invocations: ```python print(parser.parse("-34 cm / kg")[0].surface) ``` some runs print `-34 cm` and others print `-34 cm /...
**Describe the bug** The quantulum3 Python library does not correctly segment units without numbers. It should be able to parse the unit with or without a number. When parsing a...