Class TableUtils
java.lang.Object
org.verapdf.wcag.algorithms.semanticalgorithms.utils.TableUtils
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final doublestatic final doublestatic final doublestatic final doublestatic final doublestatic final doublestatic final doublestatic final doublestatic final double -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanareCenterOverlapping(TextInfoChunk chunk1, TextInfoChunk chunk2) static booleanareOverlapping(TextInfoChunk chunk1, TextInfoChunk chunk2) static booleanareStrongCenterOverlapping(TextInfoChunk chunk1, TextInfoChunk chunk2) static booleanareStrongContaining(TextInfoChunk chunk1, TextInfoChunk chunk2) static doublegetRowGapFactor(TextInfoChunk tokenRow, TextInfoChunk nextTokenRow) static booleanisAnyContaining(TextInfoChunk chunk1, TextInfoChunk chunk2) static booleanisContaining(TextInfoChunk first, TextInfoChunk second) static booleanisInitialTableNode(INode node) static booleanisTableNode(INode node) static booleanisWeakCluster(TableCluster cluster, List<TableCluster> headers) static doubleminDeviation(IChunk first, IChunk second) static voidsortClustersLeftToRight(List<TableCluster> clusters) static voidsortClustersUpToBottom(List<TableCluster> clusters)
-
Field Details
-
EPSILON
public static final double EPSILON- See Also:
-
TABLE_PROBABILITY_THRESHOLD
public static final double TABLE_PROBABILITY_THRESHOLD- See Also:
-
MERGE_PROBABILITY_THRESHOLD
public static final double MERGE_PROBABILITY_THRESHOLD- See Also:
-
HEADERS_PROBABILITY_THRESHOLD
public static final double HEADERS_PROBABILITY_THRESHOLD- See Also:
-
NEXT_TOKEN_LENGTH_THRESHOLD
public static final double NEXT_TOKEN_LENGTH_THRESHOLD- See Also:
-
NEXT_LINE_TOLERANCE_FACTOR
public static final double NEXT_LINE_TOLERANCE_FACTOR- See Also:
-
NEXT_LINE_MAX_TOLERANCE_FACTOR
public static final double NEXT_LINE_MAX_TOLERANCE_FACTOR- See Also:
-
ONE_LINE_TOLERANCE_FACTOR
public static final double ONE_LINE_TOLERANCE_FACTOR- See Also:
-
TABLE_GAP_FACTOR
public static final double TABLE_GAP_FACTOR- See Also:
-
-
Method Details
-
isTableNode
-
isInitialTableNode
-
areStrongContaining
-
isAnyContaining
-
isContaining
-
areStrongCenterOverlapping
-
areCenterOverlapping
-
areOverlapping
-
sortClustersLeftToRight
-
sortClustersUpToBottom
-
isWeakCluster
-
getRowGapFactor
-
minDeviation
-