Package: rasa-nlu-contrib
Rasa NLU engine backported from main Rasa projectrasa-nlu-contribRasa NLU engine backported from main Rasa projectRasa NLU (Natural Language Understanding) is a tool for understanding what is being said in short pieces of text.
For example, taking a short message like:"I'm looking for a Mexican restaurant in the center of town"And returning structured data like:intent: search_restaurant
  entities: 
    - cuisine : Mexican
    - location : centerRasa NLU is primarily used to build chatbots and voice apps, where this is called intent classification and entity extraction.
To use Rasa,you have to provide some training data.
That is, a set of messages which you've already labelled with their intents and entities.
Rasa then uses machine learning to pick up patterns and generalise to unseen sentences.You can think of Rasa NLU as a set of high level APIs for building your own language parser using existing NLP and ML libraries.InstallationMinimalpip install rasa-nlu-contribFullpip install rasa-nlu-contrib[all]serverspacytensorflowHTTP serverpip install rasa-nlu-contrib[server]Spacypip install rasa-nlu-contrib[spacy]Tensorflowpip install rasa-nlu-contrib[tensorflow]Chinisepip install rasa-nlu-contrib[zh]Ducklingpip install rasa-nlu-contrib[duckling]Mitiepip install rasa-nlu-contrib[mitie]Full list for copy-and-paste:pip install rasa-nlu-contrib
pip install rasa-nlu-contrib[all]
pip install rasa-nlu-contrib[server]
pip install rasa-nlu-contrib[spacy]
pip install rasa-nlu-contrib[tensorflow]
pip install rasa-nlu-contrib[zh]
pip install rasa-nlu-contrib[duckling]
pip install rasa-nlu-contrib[mitie]ChangesSeerelease notesUsageFor details seelegacy documentation.Python APIimportosimportpprintfromrasa_nlu.modelimportInterpreterfromrasa_nlu.trainimporttrainmodel_name='nlu'project_name='project_demo'here=os.path.abspath(os.path.dirname(__file__))path_config=os.path.join(here,'sample_configs','config_supervised_embeddings.yml')# noqa E501path_data=os.path.join(here,'data','examples','rasa','demo-rasa.md')path_models=os.path.join(here,'demo_models')trainer,interpreter,persisted_path=train(# @UnusedVariablepath_config,path_data,path=path_models,project=project_name,fixed_model_name=model_name)message="let's see some italian restaurants"result=interpreter.parse(message)pprint.pprint(result)interpreter=Interpreter.load(os.path.join(path_models,project_name,model_name))# noqa E501message="let's see some italian restaurants"result=interpreter.parse(message)pprint.pprint(result)HTTP APIpythondemo.pyhttp

curl'localhost:5000/'curl'localhost:5000/status'curl'localhost:5000/version'curl'localhost:5000/parse?q=hello&project=project_demo&model=nlu'Dockerdocker-composeup

curl'localhost:5000/'curl'localhost:5000/status'curl'localhost:5000/version'curl'localhost:5000/parse?q=hello&project=project_demo&model=nlu'LicenseThis project is licensed under the terms of the MIT license.
Code of Rasa is licensed under the terms of the Apache 2.0 license.Copy of the licenseandadditional notes.Development and how to contributeIssues and suggestions are welcome throughissuesChanges0.16.1 (2022-04-05)Fix issue withserverdependency0.16.0 (2021-01-21)Minimize the bare installationserver (HTTP) can be installed now separatelyRasa-NLU version 0.15.1Known issues:Teststests/base/test_extractors.py :: 1 failing tests due Python versiontests/base/test_featurizers.py :: 4 failing tests due Python versiontests/base/test_multitenancy.py :: 5 failing tests due Python versiontests/training/test_train.py :: 5 failing tests due Python versionRequirementstoxis not used due to dependecy issue onsix0.15.1 (2021-01-20)Initial releaseRasa-NLU version 0.15.1Known issues:tests/base/test_extractors.py :: 1 failing tests due Python versiontests/base/test_featurizers.py :: 4 failing tests due Python versiontests/base/test_multitenancy.py :: 5 failing tests due Python versiontests/training/test_train.py :: 5 failing tests due Python version