GithubHelp home page GithubHelp logo

Comments (3)

rsennrich avatar rsennrich commented on May 24, 2024 1

The timeout is now exposed as a command-line parameter in parzu_server. Forcing the options to be read from the command line when creating a server instance wasn't great for bigger projects, so I now changed the code to also allow passing the options (and the timeout) to the Server initializer.

Long-term, it would be nice to rewrite/refactor the options code using argparse, and sharing most of them between parzu.py and parzu_class.py

from parzu.

rsennrich avatar rsennrich commented on May 24, 2024

timeout is now configurable via an extra argument to init (separate from the options map, so that the options remain re-usable between batch and server processing).

from parzu.

johann-petrak avatar johann-petrak commented on May 24, 2024

Sorry, I do not understand this: why is the new timeout parameter separate and not part of the options? As an option one could add it to the command line arguments, and more importantly, when creating a Server instance, one could pass it through the add_options parameter. But if it is separate, how would code that creates a Server instance achieve modification of the timeout in the Parser instance?

My assumption would have been that adding something like swipl_timeout/--swipl-timeout to the options and then using this in Parser.init would be the easiest way to achieve this?

from parzu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.