Skip to main content

mloda-plugin-jev

An mloda plugin that runs Jev as a FeatureGroup: ask typed questions about a text column and get the answers back as feature columns.

Install

pip install mloda-plugin-jev
export TYPESAFE_API_KEY=...

Example

from mloda.user import Feature, Options, PluginLoader, mloda
from mloda_plugins.compute_framework.base_implementations.python_dict.python_dict_framework import PythonDictFramework

PluginLoader.all()

urgent = {"type": "noul", "instructions": "The message conveys urgency"}

result = mloda.run_all(
    [Feature("ticket__jev_urgent", Options(context={"jev_question": urgent}))],
    compute_frameworks={PythonDictFramework},
    api_data={"Tickets": {"ticket": ["I was charged twice, please fix ASAP", "The login page is broken"]}},
)
print(result[0]["ticket__jev_urgent"])  # for example [0.97, 0.12]: the probability of yes per row

The full documentation, including the mloda command line, is in the README on GitHub.

Metadata

Release files for mloda-plugin-jev 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mloda-plugin-jev 0.2.1
File Size Uploaded
mloda_plugin_jev-0.2.1.tar.gz 43.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mloda-plugin-jev 0.2.1
File Interpreter ABI Platform
mloda_plugin_jev-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 77.2 kB

Release files / mloda_plugin_jev-0.2.1.tar.gz

Download URL mloda_plugin_jev-0.2.1.tar.gz
Size 43.9 kB
Tags Source
SHA-256 checksum
How to use checksums
fc978835ff05e103d75a45dbce804e78b2246949ba42d3338bdc1218fc783f31
BLAKE2b-256 checksum
How to use checksums
43858e2986ab811742de7e999c63418359041027030b06d49b6515d84c486de3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.21

Release files / mloda_plugin_jev-0.2.1-py3-none-any.whl

Download URL mloda_plugin_jev-0.2.1-py3-none-any.whl
Size 33.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4504df20a554ebe5707b47e15010bad2d819b39898dcc13d42168992e0cbcc4c
BLAKE2b-256 checksum
How to use checksums
73f2962b0aac3ee0ffd1662dca6906bc7665f0c3343cb37d85c5c647f1ee9341
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.21

Release history Release notifications | RSS feed

0.2.2

2 release files

This release

0.2.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page