korap / korap-xml-tei Goto Github PK
View Code? Open in Web Editor NEWConversion of TEI P5 based formats to KorAP-XML
License: BSD 2-Clause "Simplified" License
Conversion of TEI P5 based formats to KorAP-XML
License: BSD 2-Clause "Simplified" License
This is just to note that the <metadata>
element doesn't seem to do anything (and I guess this statement can be strengthened to say that the element is misguiding). It is required by text.rng though.
If you'd like me to, I can remove the requirement in the schema, so that old files are still going to be valid, but new files won't need it -- with millions of files, that might maybe help a bit?
The error occurs e.g. if there is not enough memory to start the Java VM. The result can be something like:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="span.rng"
type="application/xml"
schematypens="http://relaxng.org/ns/structure/1.0"?>
<layer docid="AAZ22_JAN.00001"
xmlns="http://ids-mannheim.de/ns/KorAP"
version="KorAP-0.4">
<spanList>
<span id="t_0" from="Error" to="occurred" />
<span id="t_1" from="during" to="initialization" />
<span id="t_2" from="of" to="VM" />
</spanList>
</layer>
``
When using --inline-tokens
, the inline token annotations are stored in the target foundry#layer, but also in the structures foundry#layer. This is not very helpful, as the annotations are stored as attributes in the structure foundry and hard to reach. They should be ignored by default.
In addition to inline token support, inline dependencies may also be supported in a limited (i.e. token-based and sentence-scoped) form.
Proposal by Harald Lüngen:
<s>
<w n="1" lemma="Fake" pos="N" head="2" deprel="name">Fake</w>
<w n="2" lemma="News" pos="N" head="3" deprel="name">News</w>
<w n="3" lemma="media" pos="N" head="0" deprel="ROOT">Media</w>
...
</s>
Requested by Harald Lüngen.
I'm looking at a fragment of the Gingko corpus header from https://github.com/KorAP/KorAP-XML-Krill/blob/master/t/real/corpus/Gingko/ATZ07/JAN/00001/header.xml :
<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="header.rng"
type="application/xml"
schematypens="http://relaxng.org/ns/structure/1.0"?>
<!DOCTYPE idsCorpus PUBLIC "-//IDS//DTD IDS-XCES 1.0//EN"
"http://corpora.ids-mannheim.de/idsxces1/DTD/ids.xcesdoc.dtd">
<idsHeader TEIform="teiHeader" pattern="text" status="new" type="text" version="1.0">
<fileDesc>
<titleStmt>
<textSigle>ATZ07/JAN.00001</textSigle>
<t.title assemblage="external">ATZ07/JAN.00001 ATZ - Automobiltechnische Zeitschrift, Januar 2007, Nr. 109(1), S. 10-15; Ein neues Energiemanagement-Konzept für das elektrische Bordnetz</t.title>
</titleStmt>
And it seems to me that both schema statements are ornaments, because
<header>
<idsCorpus>
Fixing the root element in the DTD doesn't move us forward, because then lots of errors crop up that suggest that the DTD hasn't been updated while the XML has evolved.
Removing both schema associations would make the result truer, in a way ;-)
<!DOCTYPE idsHeader>
also works, but, naturally, it doesn't do much.
Error message:
Maybe empty textSigle => skipping this text ...
data=
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.