2.6.x release notes

Release notes for Lingo4G 2.6.x.

Version 2.6.0

Lingo4G 2.6.0 comes with support for clustering values of enumerated fields (such as tags or categories). Additionally, the new release adds a number of specialized stages and components and improves the performance of existing stages. Finally, the 2.6.0 release adds support for Java 24.

Compatibility

Project descriptor

Updates not required.

Reindexing

Not required. Lingo4G 2.6.0 works with indices created by Lingo4G 2.5.x.

Analysis request JSONs

Updates may be required. See the analysis API changes for the required changes to your analysis requests.

New features

Indexing-time label exclusion dictionaries

The phrase feature extractor now supports exclusion dictionaries. You can use these dictionaries to prevent indexing of unwanted labels and conserve index disk space.

New stages and components

The 2.6.0 release adds a number of stages and components.

Stage or component Use cases
vectors:​for​Document​Field​Values
matrix:​value​Similarity​From​Document​Similarities

To compute similarities between indexed fields, such as categories or authors of arXiv papers. You can then use the similarities to cluster and 2d-map those field values.

query:​if

To enable or disable a query clause using a request variable, usually part of query:​composite.

labels:​direct​Strings

To provide labels as a string array. The array of label strings can be a request variable.

labels:​from​Label​Clusters

To collect a diverse set of labels from a set of documents by first clustering the documents, labeling the clusters and then gathering cluster labels. This procedure eliminates uninformative labels that are common to all input documents.

label​Filter:​reject​Tokens

To filter labels based on individual words in a case-, inflection- and surface form insensitive way.

label​Scorer:​by​Vectors​Similarity

To collect labels that are similar to the set of labels or documents you provide.

documents:​from​Document​Neighbors

To expand a set of documents by collecting and aggregating the neighbors of each document.

values:​composite

To compute intersections and unions of values.

matrix​Rows:​weighted.enabled

To enable or disable a part of a matrix​Rows:​composite similarity using a request variable.

Improvements

Performance improvements

The 2.6.0 speeds up the execution of the matrix​Rows:​composite and label​Clusters:​document​Cluster​Labels.

API changes

values:​from​Documents

Lingo4G 2.6.0 replaces the values:​from​Document​Field stage available in previous releases with the more general values:​from​Documents.

The new stage delegates the process of value collection to the value​Collector you provide. This enables collection of values from sources other than content fields and filtering of values based on label​Filter components.

If your requests contain the values:​from​Document​Field stage, update your analysis requests to use the new values:​from​Documents stage combined with the value​Collector:​from​Content​Field value collector.

For example, if your current request contains a stage similar to:

{
  "stages": {
    "values": {
      "type": "values:fromDocumentField",
      "documents": {
        "type" : "documents:byQuery",
        "query": {
          "type": "query:string",
          "query": "photon"
        }
      },
      "multipleValues": "REQUIRE_EXACTLY_ONE",
      "fieldName": "title"
    }
  }
}

replace it with the equivalent:

{
  "stages": {
    "values": {
      "type": "values:fromDocuments",
      "documents": {
        "type" : "documents:byQuery",
        "query": {
          "type": "query:string",
          "query": "photon"
        }
      },
      "valueCollector": {
        "type": "valueCollector:fromContentField",
        "fieldName": "title"
      },
      "multipleValues": "REQUIRE_EXACTLY_ONE"
    }
  }
}

Dependency updates

Java 24 support

Lingo4G 2.6.0 adds support for Java 24.