Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Add best span string as output to predict_span #209

Merged
merged 3 commits into from Aug 28, 2017

Conversation

matt-gardner
Copy link
Contributor

@schmmd, if you really want the tokenized question and/or passage for whatever reason, you could modify the BiDAF predictor to return the tokens in the resulting json:

return sanitize(self.model.predict_span(question, passage))

This PR should get you a decent pass at an answer string, though.

@schmmd
Copy link
Member

schmmd commented Aug 28, 2017

Matt, I had gotten confused because BidafPredictor takes a string, and returns a JSON blob that gives information with respect to token offsets. This IO makes no sense, but I didn't realize that deeper in the code (BidirectionalAttentionFlow) the IO is tokenized input to token offset output, which makes fine sense.

I will fix the IO of BidafPredictor after your next PR.

@matt-gardner matt-gardner merged commit 0a2973d into allenai:master Aug 28, 2017
@matt-gardner matt-gardner deleted the best_span_str branch August 28, 2017 20:48
schmmd added a commit that referenced this pull request Feb 26, 2020
* Limit the max input of text inputs and areas.

* maxlength -> maxLength
schmmd pushed a commit that referenced this pull request Feb 26, 2020
* Set default input limits for forms (#209)
* Use rudder for deploy related functionality. (#211)
schmmd pushed a commit that referenced this pull request Feb 26, 2020
* Set default input limits for forms (#209)
* Use rudder for deploy related functionality. (#211)
schmmd pushed a commit that referenced this pull request Feb 26, 2020
* Set default input limits for forms (#209)

* Limit the max input of text inputs and areas.

* maxlength -> maxLength

* Use rudder for deploy related functionality. (#211)

* Use rudder for deploy related functionality.

This ensures that the application is deployed to the latest n'
greatest skiff cluster.

* Use the right image path.

* Release pending changes. (#212) (#213)

* Set default input limits for forms (#209)
* Use rudder for deploy related functionality. (#211)

* Bert srl (#214)

* update srl model

* update description

* bump to commit which includes srl model

* set timeout to 15 minutes

* update to latest image, add numbers (#216)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants