Giter Club home page Giter Club logo

Comments (3)

kosloot avatar kosloot commented on June 1, 2024

Well, this is 'interesting'
In a few special cases the lemmatizer uses tokenizer results to get a lemma.

For instance for the Uppercased word : "In't"
The tokenizer identifies this as a WORD-WITHSUFFIX, and knows how to strip the suffix to get a lemma.
But in this case there are 2 texts associated with the word:

          <w xml:id="vrie047wond01_01.TEI.2.text.body.div.p.note.5800.s.1.w.1" class="WORD-WITHSUFFIX">
            <t>In't</t>
            <t class="contemporary">In</t>
          </w>

AND: we are processing the textclass 'contemporary'
The 'stripping suffix' rule bluntly strips the last 2 characters from "In", leaving an empty word.
So that is wrong and can be improved on.

But there is a fundamental problem: the tokenization was done on the 'current' textclass, but this information is not available. Or we must agree that is ALWAYS on the the 'current' class only. But is NOT what we want.
Should words also carry a textclass? which in this case would mean that we don't have words at al!?
Frog should then extract 'contemporary' sentences from the FoLiA and tokenize those.
A lot of issues arise from here...

Help/thoughts welcome

from frog.

proycon avatar proycon commented on June 1, 2024

The hack worked fine for my batch, the more fundamental problem is addressed in proycon/folia#32

from frog.

kosloot avatar kosloot commented on June 1, 2024

As a note: This is now solved more fundamentally by implementing the textclass attribute for words

from frog.

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.