Morphkit

Morphkit

A Python interface to the Morpheus morphological analyser for Ancient Greek

Morphkit is a lightweight Python package that connects research code to a deployed Morpheus service. Given a word form, it retrieves the analyser’s response, separates its analytic blocks, and makes the returned lexical and morphological analyses available as structured Python data. Where Morpheus returns multiple parses, Morphkit retains the alternatives together for inspection and downstream processing.

Typical use case: an input dataset and output dataset are connected through a Python pipeline and Morphkit to a Morpheus service
Figure 1. Typical use of Morphkit in a Python-based corpus workflow. Source: project paper.
Explain the numbered stages in Figure 1
  1. Input dataset: a corpus or dataset supplies the Greek word forms for analysis.
  2. Pipeline to Morphkit: the Python workflow passes the forms to Morphkit.
  3. Query: Morphkit sends a request to the configured Morpheus API endpoint.
  4. Response: Morpheus returns one or more analytic blocks for each queried form.
  5. Analyses to pipeline: Morphkit parses the response and returns structured analyses to the Python workflow.
  6. Output dataset: downstream Python code uses the enriched data to create or extend a research dataset, for example in Text-Fabric.

Scope

Morpheus performs the lexical and morphological analysis. Morphkit provides programmatic access to a Morpheus API endpoint and processes its response. The package does not embed the Morpheus engine or independently determine the contextually correct reading of a word.

In the v1.0.0 research setting, Greek analyses may also be augmented with a rule-based part-of-speech classification and a Sandborg–Petersen-style morphological tag aligned with the conventions used in the Nestle1904 Text-Fabric corpus. These are Morphkit annotations derived from Morpheus output and should be distinguished from the analyser’s own fields.

Site contents

Project resources