Giter VIP home page Giter VIP logo

Comments (5)

proycon avatar proycon commented on June 2, 2024

Agreed that this is too lax and we should probably remove this behaviour. It is used in practise though so it would be a change from FoLiA v1.6 forward then as we can't demand this from older versions due to backward compatibility. On a related note: I thikn we should also be strict in demanding declarations for structural elements (token, paragraph, sentence), these are now optional, but if you really want the declarations to be meaningful they'd better be strict too.

For the lazy users we can provide a tool that automatically generates some ad-hoc declarations.

from folia.

kosloot avatar kosloot commented on June 2, 2024

yes, let's do this:

  • down't allow missing setnames for >= 1.6
  • provide a simple upgrade script to 1.6 (might also include test fixing ans some other goodies...)

I am still a bit reluctant towards making declarations mandatory. But in the long run it might be needed. So start requiring this too.
A conversion script adding some default declarations might be more difficult though .

from folia.

proycon avatar proycon commented on June 2, 2024

Just for clarity: of course the libraries should still remain capable of parsing pre-1.6 documents (with the missing setnames and all). The upgrade script is not a replacement for that but just an additional tool.

from folia.

proycon avatar proycon commented on June 2, 2024

We do have something extra to consider; for certain annotation types set is optional (this applies to a lot of structure elemnets), or in rare cases not present at all perhaps even. In such cases a declaration without set is permitted.

I also want to enforce that if there is a set, then there must be a class on the annotations (and obviously if there is no set, there can't be a class on annotations).

from folia.

proycon avatar proycon commented on June 2, 2024

In summary, for FoLiA 2.0:

  • Certain declarations may be set-less
    • this is indicated in the new documentation
    • this is determined by whether class is a required property for an annotation type or not, if it is then it can never be setless.
  • Annotations that assign classes must always have a set
  • There is no "undefined" set anymore that may get assigned automatically, but
  • All annotation types (including structural ones and text itself) need to be declared (the FoLiApy library can do this automatically to a certain extent)

from folia.

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.