Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
af539d6f
"...resnet50_tensorflow.git" did not exist on "63ef92aaf79172e337d90cf570bca0a2ec1304a2"
Unverified
Commit
af539d6f
authored
Oct 12, 2022
by
Daniel van Strien
Committed by
GitHub
Oct 12, 2022
Browse files
fix MarkupLMProcessor option flag (#19526)
parent
5a8a532d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
docs/source/en/model_doc/markuplm.mdx
docs/source/en/model_doc/markuplm.mdx
+2
-2
No files found.
docs/source/en/model_doc/markuplm.mdx
View file @
af539d6f
...
...
@@ -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'])
```
**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
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
[[autodoc]] MarkupLMForQuestionAnswering
- forward
\ No newline at end of file
- forward
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment