transformers/tests/models/layoutlmv2
ghlai9665 e9fd583ce0
LayoutLMv2Processor: ensure 1-to-1 mapping between images and samples in case of overflowing tokens (#17092)
* add get_overflowing_images function to ensure 1-to-1 mapping between samples and images in LayoutLMv2Processor

* make style

* add test for overflowing_tokens, change assert to ValueError, avoiding unrelated formatting changes

* change line length by passing --preview into black
2022-05-09 07:39:08 -04:00
..
__init__.py Move test model folders (#17034) 2022-05-03 14:42:02 +02:00
test_feature_extraction_layoutlmv2.py Move test model folders (#17034) 2022-05-03 14:42:02 +02:00
test_modeling_layoutlmv2.py Move test model folders (#17034) 2022-05-03 14:42:02 +02:00
test_processor_layoutlmv2.py LayoutLMv2Processor: ensure 1-to-1 mapping between images and samples in case of overflowing tokens (#17092) 2022-05-09 07:39:08 -04:00
test_tokenization_layoutlmv2.py Move test model folders (#17034) 2022-05-03 14:42:02 +02:00