iesl/dilated-cnn-ner

Inference

kamalkraj opened this issue · 5 comments

@strubell @ghaddarAbs How to write script that can take text string as input and return label for each token in the the string .

@MSheshera Do you have anything that could be easily merged?

Not really. I added some code that converted text in my json files to protobuf examples and then to write predictions back to the json files. But I dont think any of it was as nice as taking a list of tokens and returning labels.

@MSheshera can you share the code and a sample JSON file

I dont think I could do that right now because the code is actually part of a larger project. But I can certainly work with @strubell and try to merge that code in here. Sorry I couldn't be of too much immediate help!

@sbrugman : I beg your pardon but, can we use the commit you've made,for both conll and Ontonotes, such that it takes in text and pumps out their labels?
Is PR (Inference and minor improvements #16) complete?

Thanks

Regards