documentScorer

The document​Scorer:​* components compute scores for documents based on different criteria. In combination with the documents:​scored stage, you can select top-scoring documents based on the criteria of your choice.

You can use the following document​Scorer:​* components in your analysis requests:

document​Scorer:​by​Document​Neighbors

For each input document, computes the document's neighbors (similar documents) and aggregates the neighbors' weights to compute the score of the input document.


document​Scorer:​reference

References a document​Scorer:​* component defined in the request or in the project's default components.


document​Scorer:​by​Document​Neighbors

For each input document, computes the document's neighbors (similar documents) and aggregates the neighbors' weights to compute the score of the input document.

{
  "type": "documentScorer:byDocumentNeighbors",
  "documentNeighbors": {
    "type": "documentNeighbors:reference",
    "auto": true
  },
  "threads": "auto",
  "weightAggregation": "COUNT"
}

You can use the document​Neighbors:​from​Query​Builder component to generate document neighbors based on search queries specific to each input document.

document​Neighbors

Type
documentNeighbors
Default
{
  "type": "documentNeighbors:reference",
  "auto": true
}
Required
no

The component to generate neighbors (similar documents) of each input document.

limit

Type
limit
Required
no

The maximum number of neighbors to request for each input document.

threads

Type
threads
Default
auto
Required
no

Controls the number of threads Lingo4G uses to compute document neighbors.

weight​Aggregation

Type
weightAggregation
Default
"COUNT"
Required
no

The aggregation function Lingo4G uses to compute the document score based on the scores of the input document's neighbors.

See weight​Aggregation documentation for the available options.

Consumers of document​Scorer:​*

The following stages and components take document​Scorer:​* as input:

Stage or component Property
documents:​scored
  • scorer