Nomad changes
All checks were successful
Deploy fil (kreuzberg) / deploy (push) Successful in 49s

This commit is contained in:
Henrik Jess Nielsen
2026-06-01 23:40:55 +02:00
parent 72b1a0a6ed
commit b4c07d3693
5723 changed files with 1130655 additions and 0 deletions

View File

@@ -0,0 +1,92 @@
// This file is auto-generated by alef — DO NOT EDIT.
// alef:hash:4e15143f4af1ae8bafbdb1506ef057da924484c66a19483966333558ad437e75
// To regenerate: alef generate
// To verify freshness: alef verify --exit-code
// Issues & docs: https://github.com/kreuzberg-dev/alef
package dev.kreuzberg;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder;
/**
* Combined paths to all models needed for OCR (backward compatibility).
*/
@JsonInclude(JsonInclude.Include.NON_ABSENT)
@JsonDeserialize(builder = ModelPaths.Builder.class)
public record ModelPaths(
/**
* Path to the detection model directory.
*/
@JsonProperty("det_model") java.nio.file.Path detModel,
/**
* Path to the classification model directory.
*/
@JsonProperty("cls_model") java.nio.file.Path clsModel,
/**
* Path to the recognition model directory.
*/
@JsonProperty("rec_model") java.nio.file.Path recModel,
/**
* Path to the character dictionary file.
*/
@JsonProperty("dict_file") java.nio.file.Path dictFile
) {
public static Builder builder() {
return new Builder();
}
// CPD-OFF
@JsonPOJOBuilder(withPrefix = "with", buildMethodName = "build")
public static final class Builder {
@JsonProperty("det_model")
private java.nio.file.Path detModel = null;
@JsonProperty("cls_model")
private java.nio.file.Path clsModel = null;
@JsonProperty("rec_model")
private java.nio.file.Path recModel = null;
@JsonProperty("dict_file")
private java.nio.file.Path dictFile = null;
/** Sets the detModel field. */
@JsonProperty("det_model")
public Builder withDetModel(final java.nio.file.Path value) {
this.detModel = value;
return this;
}
/** Sets the clsModel field. */
@JsonProperty("cls_model")
public Builder withClsModel(final java.nio.file.Path value) {
this.clsModel = value;
return this;
}
/** Sets the recModel field. */
@JsonProperty("rec_model")
public Builder withRecModel(final java.nio.file.Path value) {
this.recModel = value;
return this;
}
/** Sets the dictFile field. */
@JsonProperty("dict_file")
public Builder withDictFile(final java.nio.file.Path value) {
this.dictFile = value;
return this;
}
/** Builds the ModelPaths instance. */
public ModelPaths build() {
return new ModelPaths(
detModel,
clsModel,
recModel,
dictFile
);
}
}
// CPD-ON
}