I have created a custom processor using google AutoML entity extractor and trained few pdfs. The Pdf's actually contains Photo identity card. I was able to test it in their UI and it was able to extract the entity properly. Now Im using their Java client library to do it using code given below. Here is the sample
Here I see that they pass the text content into the library instead I want to send the PDF content. I don't want to use the google cloud storage bucket instead I want to load file locally and sent it to the entity extractor. I tried using the Document
class as below
Document.parseDelimitedFrom(FileInputStream("test.pdf"))
but it gives me an error.
Any help is highly appriciated.