Skip to content

Latest commit

 

History

History
47 lines (32 loc) · 2.28 KB

README.md

File metadata and controls

47 lines (32 loc) · 2.28 KB

tikabooty

Service to extract text from common office formats, using Apache Tika

Named tikabooty since it combines Apache Tika with Spring Boot

  • The idea is that, in a document/text processing pipeline, you'll need to extract the text from common office format documents and, probably, do something like index or run named entity recognition (NER) on the result (or, dump it into a data store).

  • Input documents are sent via HTTP POST, like this (from the command line):

    curl -F "file=@my_file.pdf" https://hostname:8080/

The response will include the file name, plus any headers found in the document, and a "content" field, which will contain the entire text found within the file. The output is currently formatted as field_name + TAB + field_value + '\n'. Note that, if you deploy to Cloud Foundry, you can use either https or http.

When the client invokes this service, it is, in effect, making a tikabooty call.

Deploy in Cloud Foundry:

$ mvn package

$ cf login

$ cf push tikabooty -p ./target/tikabooty-0.0.1-SNAPSHOT.jar