semantics ibrary
Project description
Semantic library: used to extract numbers,convert units and solve equations from text. Three modules are used for the library; number,units and solver modules number module: used to extract numbers from text. its white space and comma sensitive ''' example : from semantics import Number
result = 'three hundred and fifty'
b = Number()
b.converts(result)
it prints 350 to the terminal
'''
solve module:
used to extract equations and solve them from text. all number should be written in text and not digits
'''
example:
from semantics import Solver
result = 'three hundred and fifty minus two'
b = Solver()
b.solve(result)
# it prints 348 to the terminal
'''
look more at the documention in the code to see more operations to perform
unit module:
used to convert between units. its syntax is : convert {magnitude} {unit} to {unit}
it contains different units of three quantities; area,length,time
#look into the code to see the various units
'''
example:
from semantics import Units
b = Units()
result= 'convert twelve cm to m'
b.convert(unit)
this prints 0.12m in the terminal
'''
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file Ekpenisi-0.1.0-py3-none-any.whl.
File metadata
- Download URL: Ekpenisi-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c3df090617b48cd8efcf8cb21cbfe58a03668da32a7bc9ec1fc5c34d0511fa41
|
|
| MD5 |
4a7cc97a7074d2b365e638cd75029112
|
|
| BLAKE2b-256 |
f9eadbc966fce83c38575a580e4f0a34670127eb9b34ac8ae5067dffdae7faa6
|