public class Row extends LinePart
GROBID_TOKEN_DEFAULT_DOUBLE
Constructor and Description |
---|
Row() |
Modifier and Type | Method and Description |
---|---|
void |
add(Cell cell) |
static int |
columnCount(java.util.List<Row> rows) |
static java.util.List<Row> |
extractRows(java.util.List<Line> lines) |
java.util.List<Cell> |
getContent() |
static void |
insertEmptyCells(java.util.List<Row> rows,
int columnCount) |
boolean |
isEmpty() |
static void |
mergeMulticolumnCells(java.util.List<Row> rows) |
public void add(Cell cell)
public java.util.List<Cell> getContent()
public static java.util.List<Row> extractRows(java.util.List<Line> lines)
lines
- Lines, detected by the algorithm, see Line::extractLinespublic static void insertEmptyCells(java.util.List<Row> rows, int columnCount)
rows
- extracted rowscolumnCount
- the maximum number of columns in the table
Identifies and inserts empty cells into the table based on the left and right margins of the content inside columns.public static int columnCount(java.util.List<Row> rows)
public static void mergeMulticolumnCells(java.util.List<Row> rows)