Skip to content

python wrapper + speed #77

@AlJohri

Description

@AlJohri

hi @JannikStroetgen, I'm trying to wrap heideltime to use in python but I'm running into issues with speed. it seems invoking via the CLI is becoming very slow on the order of 7-8 seconds per document. it's a rather short script as you can see here:

https://github.com/AlJohri/heideltime-python/blob/master/heideltime.py

two questions:

  1. notice anything wrong in my invocation that would be slowing it down considerably?
  2. do you have an web API version somewhere that powers the online demo? perhaps the majority of the time is just spent starting the JVM repeatedly. hitting an API where everything is already loaded and ready to go may be much faster

thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions