Skip to content

Questions on BobcatParser #44

Answered by ianyfan
chin-jey asked this question in Q&A
Sep 22, 2022 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

what is the use of Bert ? I see you have a parameter to specify a pre-trained model for huggingface, I'm not sure I understand what you do with it

Bobcat parses a sentence by producing a bunch of candidate trees and then picking the tree with the best score. These scores are predicted by a BERT-based model specifically designed for this purpose.

what is the purpose of suppressing exceptions and appending a None when calling sentences2diagrams ? Why don't you discard the diagram ?

It makes it easier to match up each diagram in the list with the entry in the input (in case you have additional information attached to each entry). It's simple to discard the failed parses after the fact, b…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@chin-jey
Comment options

@chin-jey
Comment options

@ianyfan
Comment options

Answer selected by chin-jey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants