Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to annotated space-seperated tokens? #199

Open
fishfree opened this issue Mar 20, 2025 · 1 comment
Open

How to annotated space-seperated tokens? #199

fishfree opened this issue Mar 20, 2025 · 1 comment
Labels

Comments

@fishfree
Copy link

I have a plain text file conficious.txt with only one line as below:
孔子 曰 : 学 而 时 习 之 , 不 亦 悦 乐 。
I convert it to conficious.folia.xml with txt2folia conficious.txt as below:

<?xml version='1.0' encoding='utf-8'?>
<FoLiA xmlns="http://ilk.uvt.nl/folia" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="lunyu" version="2.5.3" generator="foliapy-v2.5.12">
  <metadata type="native">
    <annotations>
      <text-annotation set="https://raw.githubusercontent.com/proycon/folia/master/setdefinitions/text.foliaset.ttl">
        <annotator processor="proc.txt2folia.08999826"/>
      </text-annotation>
      <linebreak-annotation>
        <annotator processor="proc.txt2folia.08999826"/>
      </linebreak-annotation>
      <paragraph-annotation>
        <annotator processor="proc.txt2folia.08999826"/>
      </paragraph-annotation>
    </annotations>
    <provenance>
      <processor xml:id="proc.txt2folia.08999826" name="txt2folia" type="auto" version="2.5.8" folia_version="2.5.3" command="txt2folia lunyu.txt" host="DESKTOP-ZWZ" begindatetime="2025-03-20T06:48:42">
        <processor xml:id="proc.txt2folia.08999826.generator" name="foliapy" type="generator" version="2.5.12" folia_version="2.5.3" src="https://github.com/proycon/foliapy"/>
      </processor>
    </provenance>
  </metadata>
  <text xml:id="lunyu.text">
    <p xml:id="lunyu.text.p.1">
      <t>孔子 曰  :  学 而 时 习 之 , 不 亦 悦 乐 。<br/></t>
    </p>
  </text>
</FoLiA>

Then upload it into FLAT via the web UI, I cannot select a single tokens or multiple tokens by clicking or dragging to annotate it. Whichever token is clicked, the whole sentence will be selected to annotate:

Image

@proycon
Copy link
Owner

proycon commented Mar 20, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants