Skip to main content

A collection of Orange3 widgets to perform natural language processing

Project description

orange3-nlp

This provides a collection of widgets for Natural Language Processing.

Installation

Within the Add-ons installer, click on "Add more..." and type in orange3-nlp

Widgets

Canvas with all 8 widgets provided by the Orange3-NLP package

  • Abstractive Summary
  • Extractive Summary
  • Named Entity Recognition
  • POS Tagger
  • POS Viewer
  • Question Answering
  • Reference Library
  • Ollama RAG

Summary Widgets

  • Extractive Summary: Selects and joins key sentences or phrases from the original text.

Extractive Summary of The Little Match-Seller

  • Abstractive Summary: Generates new sentences that paraphrase and condense the original content (more similar to how humans summarize).

Abstractive Summary of The Litle Match-Seller

Named Entity Recognition

Named Entity Recognition (NER) is a task in NLP that locates and classifies named entities in text into predefined categories such as:

  • PERSON – names of people
  • ORG – organizations
  • GPE – countries, cities, or locations
  • DATE, TIME, MONEY, etc.

Part of Speech Tagging

Part-of-speech (POS) tagging assigns grammatical categories to each word in a sentence.

Common POS Tags

Tag Meaning Example
NN Noun cat, city
VB Verb run, is
JJ Adjective fast, red
RB Adverb quickly
DT Determiner the, an
IN Preposition on, with

POS tagging is essential for syntactic parsing and downstream NLP tasks.

Part of Speech Viewer

This uses spaCy's displacy HTML renderer to provide a parsed dependency tree of the parts of speech of the input text.

Part of Speech Viewer with parsed Slovenian text.

Question Answering

Question Answering (QA) systems aim to extract or generate answers to user questions from a text or knowledge base.

Question and Answers for "Who Died?" against the Book Excerpts corpus

Reference Augmented Generation

Reference Augmented Generation (RAG) is a method of enhancing large language model (LLM) responses by providing external documents as supporting context. Instead of relying solely on the model's training data, RAG:

  • Retrieves relevant snippets from a document collection (knowledge base).
  • Augments the prompt to the LLM by including this retrieved content.
  • Generates a more accurate and grounded answer based on the context.

RAG Workflow

Let's take a look at the Reference Library

Reference Library

And lastly, let's look at the Ollama RAG use.

Ollama RAG Widget: Using the phi Ollama model, and a prompt of "Who were the Munchins and what are they good at?"

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

orange3_nlp-0.0.6.tar.gz (137.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

orange3_nlp-0.0.6-py3-none-any.whl (181.4 kB view details)

Uploaded Python 3

File details

Details for the file orange3_nlp-0.0.6.tar.gz.

File metadata

  • Download URL: orange3_nlp-0.0.6.tar.gz
  • Upload date:
  • Size: 137.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.0

File hashes

Hashes for orange3_nlp-0.0.6.tar.gz
Algorithm Hash digest
SHA256 4f4dec373dd2b8b4fd545d16a93d62e8b892cc86d22dd36e7bdcc68746c11849
MD5 9b7ca4764447d5c3888e7a001b8493a3
BLAKE2b-256 e9d8fe0bb30bc25cddceeaeac7db5b9d428c592cedc68a45afe8d6c16377c936

See more details on using hashes here.

File details

Details for the file orange3_nlp-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: orange3_nlp-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 181.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.0

File hashes

Hashes for orange3_nlp-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 9beca841085fbf82e33f725b71167be65ffa6eee785995e8c5681ac36f9cba32
MD5 8dd3af0f706052865f217f012ab8033c
BLAKE2b-256 fe1f8680bbc973a21adee1ab460fe1c0a5383d8bbd1475b8d51d903910b02e15

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page