Skip to main content
https://travis-ci.org/wiseman/pyluis.svg?branch=master

pyluis

This is a Python interface to Microsoft LUIS <https://luis.ai/> (Language Understanding Intelligent Service).

How to use it

After you have created and published your LUIS application, you can use it to analyze text:

>>> import luis

# Use the URL LUIS gives you when you publish your app.
>>> l = luis.Luis(url='https://https://api.projectoxford.ai/luis/...')

# Send text to be analyzed:
>>> r = l.analyze('fly forward 10 feet')

# See all identified intents:
>>> print r.intents
[<Intent intent=u'TRANSLATE' score=1.0>,
 <Intent intent=u'None' score=0.015184097>,
 <Intent intent=u'ROTATE' score=0.00713030435>,
 ...]

# See all identified entities:
>>> print r.entities
[<Entity entity=u'forward' type=u'FORWARD' score=0.9585199 start_index=4 end_index=10>,
 <Entity entity=u'10 feet' type=u'builtin.dimension' score=0.9829198 start_index=12 end_index=18>]

# What was the highest-scored intent?
>>> best = r.best_intent()
>>> print best
<Intent intent=u'TRANSLATE' score=1.0>
>>> print best.intent
u'TRANSLATE'
>>> print best.score
1.0

Metadata

Release files for luis 2.0.2

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

Source distribution (sdist)

Source distribution for luis 2.0.2
File Size Uploaded Provenance
luis-2.0.2.tar.gz 5.3 kB Without provenance Details

Release files / luis-2.0.2.tar.gz

Download URL luis-2.0.2.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
f548f88001d821bb22764f2e55c5bb873f1c11361cfb6ed702580c50d0a94f5b
BLAKE2b-256 checksum
How to use checksums
3a498e6a31e1ddb1673e2e6e912ffb5abc7d1da97d9d79b1aa8a37d0732b756b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for luis 2.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

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