Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C/C++ alternative to Apache Tika

I am looking for a C/C++ alternative for Apache Tika framework which is Java based. Specifically, I am searching for file meatadata and structured text extraction all under one framework. After some online searching and browsing the closest thing I have is GNU libextractor and a bunch of individual file filters that parse documents to extract text data (pdftoext, xls2csv ..etc)

Can anyone please recommend a good library comparable to Apache's Tika ?

Thanks

like image 237
Nik Avatar asked Jun 03 '11 22:06

Nik


2 Answers

Tika has a network server mode, so you could always start Tika using that and then send it requests from your C++ code?

Alternately, Tika has a CLI mode, so you could fire off a new Tika process each time and read the data from the pipe.

like image 167
Gagravarr Avatar answered Sep 18 '22 03:09

Gagravarr


KDE provides a library called KFileMetaData which they internally use for their file indexer.

It uses C++, Qt5 and supports most of the basic formats such as - ms-office-2007, odfs, pdfs, images, video, audio and ebooks.

like image 45
Vishesh Handa Avatar answered Sep 21 '22 03:09

Vishesh Handa