Aimped is a unique library that provides classes and functions for only exclusively business-tailored AI-based NLP models.
Project description
aimped
Aimped is a unique python library that provides classes and functions for only exclusively business-tailored AI-based NLP models.
Installation
pip install aimped
Usage
import aimped
print(aimped.__version__)
Examples
Example 1
from aimped import nlp
result = nlp.sentence_tokenizer("Hi, welcome to aimped. Explore ai models.",language="english")
print(result)
# ['Hi, welcome to aimped.', 'Explore ai models.']
Example 2
from aimped.nlp.tokenizer import sentence_tokenizer
result = sentence_tokenizer("Hi, welcome to aimped. Explore ai models.",language="english")
print(result)
# ['Hi, welcome to aimped.', 'Explore ai models.']
Example 3
from aimped.nlp.pipeline import Pipeline
pipe = Pipeline(model=model, tokenizer=tokenizer, device='cpu')
result = pipe.ner_result(
text=text,
sents_tokens_list=sents_tokens_list,
sentences=sentences)
print(result)
Example 4
from aimped.nlp.pipeline import Pipeline
text = """Trotz aller medizinischen Interventionen konnte der bei dem Verkehrsunfall schwer verletzte Fahrer des Fahrzeugs nicht gerettet werden."""
pipe = Pipeline(model=model, tokenizer=tokenizer, device='cpu')
result = pipe.translation_result(
text=[text],
source_language = "german",
output_language = "english")
print(result)
# ['Despite all medical interventions, the driver of the vehicle who was severely injured in the traffic accident could not be saved.']
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 Distribution
aimped-0.1.40.tar.gz
(23.0 kB
view hashes)
Built Distribution
aimped-0.1.40-py3-none-any.whl
(31.1 kB
view hashes)