nielstron / quantulum3

Library for unit extraction - fork of quantulum for python3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to get the raw unit ?

gihanpanapitiya opened this issue · comments

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 2 M/L')

Also, is there a way to find the span of value and unit quantities seperately?