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 models.
In this version, we provide the following features:
Sound processing tools and functions, NLP tools and functions, and a pipeline class for NLP tasks.
Installation
pip install aimped
Usage
import aimped
print(aimped.__version__)
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.utils import LimitChecker
checker = LimitChecker()
checker.check_video("video.mp4", input_limit=120)
# Output: True
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
from transformers import pipeline, AutoTokenizer, AutoModelForSeq2SeqLM
from aimped.nlp import translation
checkpoint = "/path/to/model_checkpoint"
model = AutoModelForSeq2SeqLM.from_pretrained(checkpoint)
tokenizer = AutoTokenizer.from_pretrained(checkpoint)
device = 0
aimped = Pipeline(model=model, tokenizer=tokenizer, device=device)
aimped.translation_result(["text1_de","text2_de",...],source_language="german", output_language="english")
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.2.0.tar.gz
(31.9 kB
view hashes)
Built Distribution
aimped-0.2.0-py3-none-any.whl
(40.4 kB
view hashes)