Giter VIP home page Giter VIP logo

Comments (4)

BeritJanssen avatar BeritJanssen commented on June 22, 2024 1

Ah, ok, after some experimentation I now realize that __init__ was probably left out on purpose, such that the NotImplementedErrors are exposed. Init would put some values into these fields, which is apparently not the desired behaviour. For the export of the database structure in json, it would have been neat to query the structure of the Corpus object in the same way as of each Field object, with a call to __dict__. But there are other ways, so no worries.

from i-analyzer.

jgonggrijp avatar jgonggrijp commented on June 22, 2024

I think it is left out for the reason that it is not needed. Do you see a reason why it should be there?

from i-analyzer.

BeritJanssen avatar BeritJanssen commented on June 22, 2024

An init would make it possible to query the structure of the class with __dict__.

from i-analyzer.

jgonggrijp avatar jgonggrijp commented on June 22, 2024

I you need to add the __init__, please go ahead and do it. I can't think of a reason why it should be left out. If it breaks something, we'll notice soon enough.

(Though I don't understand how __init__ facilitates structure querying with dict. How does that work? Besides, what do you need that for?)

from i-analyzer.

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.