reassign_tokens2: Assign tokens to a single new block

Description Usage Arguments Value Examples

View source: R/process_output.R

Description

This is a specialized function for use in connection with text reordering. It is designed to facilitate manual splitting of block boundary boxes and typically takes a one-row block dataframe generated by from_labelme().

Usage

1
reassign_tokens2(token_df, block, page = 1)

Arguments

token_df

a data frame generated by dair::build_token_df

block

a one-row data frame of the same format as token_df

page

the number of the page on which the block belongs

Value

a token data frame

Examples

1
2
3
4
5
## Not run: 
new_token_df <- reassign_tokens2(token_df, new_block_df)
new_token_df <- reassign_tokens2(token_df, new_block_df, 5)

## End(Not run)

daiR documentation built on June 11, 2021, 5:16 p.m.