Class ChunkMetadata.Builder
- java.lang.Object
-
- ai.extend.types.ChunkMetadata.Builder
-
- All Implemented Interfaces:
ChunkMetadata._FinalStage,ChunkMetadata.PageRangeStage
- Enclosing class:
- ChunkMetadata
public static final class ChunkMetadata.Builder extends java.lang.Object implements ChunkMetadata.PageRangeStage, ChunkMetadata._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChunkMetadata._FinalStageavgOcrConfidence(Nullable<java.lang.Double> avgOcrConfidence)Average per-word OCR confidence across words in this chunk, ornullwhen word-level confidence is unavailable.ChunkMetadata._FinalStageavgOcrConfidence(java.lang.Double avgOcrConfidence)Average per-word OCR confidence across words in this chunk, ornullwhen word-level confidence is unavailable.ChunkMetadata._FinalStageavgOcrConfidence(java.util.Optional<java.lang.Double> avgOcrConfidence)Average per-word OCR confidence across words in this chunk, ornullwhen word-level confidence is unavailable.ChunkMetadatabuild()ChunkMetadata.Builderfrom(ChunkMetadata other)ChunkMetadata._FinalStageminOcrConfidence(Nullable<java.lang.Double> minOcrConfidence)Lowest per-word OCR confidence across words in this chunk, ornullwhen word-level confidence is unavailable.ChunkMetadata._FinalStageminOcrConfidence(java.lang.Double minOcrConfidence)Lowest per-word OCR confidence across words in this chunk, ornullwhen word-level confidence is unavailable.ChunkMetadata._FinalStageminOcrConfidence(java.util.Optional<java.lang.Double> minOcrConfidence)Lowest per-word OCR confidence across words in this chunk, ornullwhen word-level confidence is unavailable.ChunkMetadata._FinalStagepageRange(ChunkMetadataPageRange pageRange)The page range this chunk covers.
-
-
-
Method Detail
-
from
public ChunkMetadata.Builder from(ChunkMetadata other)
- Specified by:
fromin interfaceChunkMetadata.PageRangeStage
-
pageRange
public ChunkMetadata._FinalStage pageRange(@NotNull ChunkMetadataPageRange pageRange)
The page range this chunk covers. Often will just be a partial page, in which cases
startandendwill be the same.The page range this chunk covers. Often will just be a partial page, in which cases
startandendwill be the same.- Specified by:
pageRangein interfaceChunkMetadata.PageRangeStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
avgOcrConfidence
public ChunkMetadata._FinalStage avgOcrConfidence(Nullable<java.lang.Double> avgOcrConfidence)
Average per-word OCR confidence across words in this chunk, or
nullwhen word-level confidence is unavailable.- Specified by:
avgOcrConfidencein interfaceChunkMetadata._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
avgOcrConfidence
public ChunkMetadata._FinalStage avgOcrConfidence(java.lang.Double avgOcrConfidence)
Average per-word OCR confidence across words in this chunk, or
nullwhen word-level confidence is unavailable.- Specified by:
avgOcrConfidencein interfaceChunkMetadata._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
avgOcrConfidence
public ChunkMetadata._FinalStage avgOcrConfidence(java.util.Optional<java.lang.Double> avgOcrConfidence)
Average per-word OCR confidence across words in this chunk, or
nullwhen word-level confidence is unavailable.- Specified by:
avgOcrConfidencein interfaceChunkMetadata._FinalStage
-
minOcrConfidence
public ChunkMetadata._FinalStage minOcrConfidence(Nullable<java.lang.Double> minOcrConfidence)
Lowest per-word OCR confidence across words in this chunk, or
nullwhen word-level confidence is unavailable.- Specified by:
minOcrConfidencein interfaceChunkMetadata._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
minOcrConfidence
public ChunkMetadata._FinalStage minOcrConfidence(java.lang.Double minOcrConfidence)
Lowest per-word OCR confidence across words in this chunk, or
nullwhen word-level confidence is unavailable.- Specified by:
minOcrConfidencein interfaceChunkMetadata._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
minOcrConfidence
public ChunkMetadata._FinalStage minOcrConfidence(java.util.Optional<java.lang.Double> minOcrConfidence)
Lowest per-word OCR confidence across words in this chunk, or
nullwhen word-level confidence is unavailable.- Specified by:
minOcrConfidencein interfaceChunkMetadata._FinalStage
-
build
public ChunkMetadata build()
- Specified by:
buildin interfaceChunkMetadata._FinalStage
-
-