Skip to content

Fine-tuning a Transformer albert model for Question Answering on Squad 2.0

License

Notifications You must be signed in to change notification settings

ntedgi/albert-fine-tuning-squad-2.0

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

the Albert Model for question answering fine tuning squad 2.0

links:

How I Run This Project Locally ?

  • clone this repository

  • Just Want to Play ?

    • Run : bash install.sh
    • Run : bash run.sh
  • request:

    • End-Point : GET http://localhost:8000/predict
    • Params : { question : String , paragraphs : Array}
  • result:

    • Type : Json
    • Result : {result : [paragraphIndex:Int , Answer:String]
  • example:

curl -X GET \  http://localhost:8000/predict \ -H 'Content-Type: text/plain' \ -d '{"question":"Who was Jim Henson?", "paragraphs":[ {"id": 1, "text": "has a nice car. Jim Henson was a nice puppet."} , {"id":2,"text": "All the 2023(GoF) design patterns implemented inJavascript.Jim Henson was a monkey king"}]}'

{ "result": [ [ 1, "a nice puppet" ], [ 2, "a monkey king" ] ] }

About

Fine-tuning a Transformer albert model for Question Answering on Squad 2.0

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published