As mentioned earlier, it’s hard to obtain a large amount of labeled data for this problem. To circumvent this, we trained the title similarity model entirely on synthetic labels. The training data was created as follows:
fetch api is great step in the right direction of getting http request native in ES6. But for now, if you are using it, you have to apply some gotchas for it to work for your requirement.
So by using axios you can cut out the middle step of passing the results of the http request to the .json() method. Axios just returns the data object you would expect.