I am trying to use the tika package to Parse files. Tika is successfully installed, tika-server-1.18.jar
runned with Code in cmd Java -jar tika-server-1.18.jar
My code in the Jupyter is:
import tika
from tika import parser
parsed = parser.from_file('')
However, I receive below error:
2018-07-25 10:20:13,325 [MainThread ] [WARNI] Failed to see startup log message; retrying... 2018-07-25 10:20:18,329 [MainThread ] [WARNI] Failed to see startup log message; retrying... 2018-07-25 10:20:23,332 [MainThread ] [WARNI] Failed to see startup log message; retrying... 2018-07-25 10:20:28,340 [MainThread ] [ERROR] Tika startup log message not received after 3 tries. 2018-07-25 10:20:28,340 [MainThread ] [ERROR] Failed to receive startup confirmation from startServer.
RuntimeError: Unable to start Tika Server.
tika_client.extract_all_content(path_to_file)
returns an empty string – Nitid