Use tika with python, runtimeerror: unable to start tika server

后端 未结 4 1045
礼貌的吻别
礼貌的吻别 2020-12-10 11:33

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.1

4条回答
  •  伪装坚强ぢ
    2020-12-10 11:58

    After you import Tika you need to initialize the Java Server

    import tika
    tika.initVM()
    from tika import parser
    parsed = parser.from_file('') //file name should be here
    

提交回复
热议问题