galsang / BiDAF-pytorch

Re-implementation of BiDAF(Bidirectional Attention Flow for Machine Comprehension, Minjoon Seo et al., ICLR 2017) on PyTorch.
244 stars 85 forks source link

Predictor? #5

Closed ken-the-lin closed 4 years ago

ken-the-lin commented 5 years ago

Thank you for your nice implementation. The training went well. I have been trying to build a predictor using your model, but I have been encountering a series of problems unresolvable for me.

Can you make a predictor out of your current code, to achieve something like answer = predictor(context, question)

Thanks in advance

galsang commented 5 years ago

You mean some kind of an interactive version of the code which can accept a sentence at a time? Yeah, it's possible and I'll keep in mind appending the feature but I'm not sure when this would be done.