Documentation

Linglib.Morphology.Word.UD

Universal Dependencies annotation of tokens #

The bridge between the analytical inventories of person, number, gender and case and the tags treebanks annotate. Each inventory realizes as a tag where one exists and each tag ingests as a value: person's clusivity has no tag and collapses to the first person, so ingestion after realization is coarsening; number's minimal, augmented and general values have no tag, and the inverse, collective and count tags no value; the animacy genders have no tag. A token's features realize as an annotation record and an annotation ingests as features, and an annotation ingests as an agreement bundle.

Main declarations #

References #

Person #

Ingest an annotation; the impersonal Person=0 is the absence of a person.

Equations
Instances For
    theorem Person.fromUD_toUD (p : Person) :
    fromUD p.toUD = some p.coarsen

    Realization is a partial inverse of ingestion up to clusivity, which has no tag.

    @[simp]
    theorem Person.toUD_fromUD {u : UD.Person} {p : Person} (h : fromUD u = some p) :
    p.toUD = u

    The annotation conflates the clusivity values.

    Number #

    def Number.toUD :
    Number → Option UD.Number

    Realize as an annotation; general, minimal, augmented, unit augmented and global plural have no tag.

    Equations
    Instances For

      The values with a tag round-trip.

      Gender #

      def Gender.toUD :
      Gender → Option UD.Gender

      Realize as an annotation; the animacy labels have no tag.

      Equations
      Instances For
        theorem Gender.isPartialInv_fromUD_toUD :
        Function.IsPartialInv fromUD toUD

        Realization is a partial inverse of ingestion.

        @[simp]
        theorem Gender.toUD_fromUD (u : UD.Gender) :
        (fromUD u).toUD = some u
        theorem Gender.fromUD_of_toUD_eq_some {g : Gender} {u : UD.Gender} (h : g.toUD = some u) :
        fromUD u = g

        The labels with a tag round-trip.

        Case #

        theorem Case.fromUD_toUD (c : Case) :
        fromUD c.toUD = if c = obl then acc else c

        Ingestion after realization is the identity but on the oblique, which realizes as Acc, the tag UD's guidelines give the oblique of a language with a direct and an oblique case only, and ingests as the accusative.

        theorem Case.toUD_fromUD (u : UD.Case) :
        (fromUD u).toUD = u

        Tokens #

        The annotation of a token's features.

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For

          The agreement bundle an annotation ingests as.

          Equations
          Instances For