fix MarkupLMProcessor option flag (#19526)
This commit is contained in:
committed by
GitHub
parent
5a8a532dcf
commit
af539d6f0a
@@ -178,7 +178,7 @@ processor will use the feature extractor to get all nodes and xpaths, and create
|
|||||||
dict_keys(['input_ids', 'token_type_ids', 'attention_mask', 'xpath_tags_seq', 'xpath_subs_seq'])
|
dict_keys(['input_ids', 'token_type_ids', 'attention_mask', 'xpath_tags_seq', 'xpath_subs_seq'])
|
||||||
```
|
```
|
||||||
|
|
||||||
**Use case 5: web page question answering (inference), apply_ocr=False**
|
**Use case 5: web page question answering (inference), parse_html=False**
|
||||||
|
|
||||||
For question answering tasks (such as WebSRC), you can provide a question to the processor. If you have extracted
|
For question answering tasks (such as WebSRC), you can provide a question to the processor. If you have extracted
|
||||||
all nodes and xpaths yourself, you can provide them directly to the processor. Make sure to set `parse_html` to `False`.
|
all nodes and xpaths yourself, you can provide them directly to the processor. Make sure to set `parse_html` to `False`.
|
||||||
@@ -243,4 +243,4 @@ dict_keys(['input_ids', 'token_type_ids', 'attention_mask', 'xpath_tags_seq', 'x
|
|||||||
## MarkupLMForQuestionAnswering
|
## MarkupLMForQuestionAnswering
|
||||||
|
|
||||||
[[autodoc]] MarkupLMForQuestionAnswering
|
[[autodoc]] MarkupLMForQuestionAnswering
|
||||||
- forward
|
- forward
|
||||||
|
|||||||
Reference in New Issue
Block a user