Class TableUtils
- java.lang.Object
-
- org.verapdf.wcag.algorithms.semanticalgorithms.utils.TableUtils
-
public class TableUtils extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static doubleEPSILONstatic doubleHEADERS_PROBABILITY_THRESHOLDstatic doubleMERGE_PROBABILITY_THRESHOLDstatic doubleNEXT_LINE_MAX_TOLERANCE_FACTORstatic doubleNEXT_LINE_TOLERANCE_FACTORstatic doubleONE_LINE_TOLERANCE_FACTORstatic doubleTABLE_GAP_FACTORstatic doubleTABLE_PROBABILITY_THRESHOLD
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 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 Detail
-
EPSILON
public static final double EPSILON
- See Also:
- Constant Field Values
-
TABLE_PROBABILITY_THRESHOLD
public static final double TABLE_PROBABILITY_THRESHOLD
- See Also:
- Constant Field Values
-
MERGE_PROBABILITY_THRESHOLD
public static final double MERGE_PROBABILITY_THRESHOLD
- See Also:
- Constant Field Values
-
HEADERS_PROBABILITY_THRESHOLD
public static final double HEADERS_PROBABILITY_THRESHOLD
- See Also:
- Constant Field Values
-
NEXT_LINE_TOLERANCE_FACTOR
public static final double NEXT_LINE_TOLERANCE_FACTOR
- See Also:
- Constant Field Values
-
NEXT_LINE_MAX_TOLERANCE_FACTOR
public static final double NEXT_LINE_MAX_TOLERANCE_FACTOR
- See Also:
- Constant Field Values
-
ONE_LINE_TOLERANCE_FACTOR
public static final double ONE_LINE_TOLERANCE_FACTOR
- See Also:
- Constant Field Values
-
TABLE_GAP_FACTOR
public static final double TABLE_GAP_FACTOR
- See Also:
- Constant Field Values
-
-
Method Detail
-
isTableNode
public static boolean isTableNode(INode node)
-
areStrongContaining
public static boolean areStrongContaining(TextInfoChunk chunk1, TextInfoChunk chunk2)
-
isAnyContaining
public static boolean isAnyContaining(TextInfoChunk chunk1, TextInfoChunk chunk2)
-
isContaining
public static boolean isContaining(TextInfoChunk first, TextInfoChunk second)
-
areStrongCenterOverlapping
public static boolean areStrongCenterOverlapping(TextInfoChunk chunk1, TextInfoChunk chunk2)
-
areCenterOverlapping
public static boolean areCenterOverlapping(TextInfoChunk chunk1, TextInfoChunk chunk2)
-
areOverlapping
public static boolean areOverlapping(TextInfoChunk chunk1, TextInfoChunk chunk2)
-
sortClustersLeftToRight
public static void sortClustersLeftToRight(List<TableCluster> clusters)
-
sortClustersUpToBottom
public static void sortClustersUpToBottom(List<TableCluster> clusters)
-
isWeakCluster
public static boolean isWeakCluster(TableCluster cluster, List<TableCluster> headers)
-
getRowGapFactor
public static double getRowGapFactor(TextInfoChunk tokenRow, TextInfoChunk nextTokenRow)
-
-