Comments (4)
Input sample:
<event class="poem" xml:id="aa__001biog01_01.TEI.2.text.body.div.lg.1620">
<utt xml:id="aa__001biog01_01.TEI.2.text.body.div.lg.l.1614"> <t>Galenus wezen leeft op 't velt van dit papier</t></utt>
<utt xml:id="aa__001biog01_01.TEI.2.text.body.div.lg.l.1615"> <t>Zyn tong alleen is stom; kon die de banden breken,</t></utt>
<utt xml:id="aa__001biog01_01.TEI.2.text.body.div.lg.l.1616"> <t>Zy zou hier hemeltaal en boetorakels spreken,</t></utt>
<utt xml:id="aa__001biog01_01.TEI.2.text.body.div.lg.l.1617"> <t>En berten blaken met een toorts van heilig vier.</t></utt>
<utt xml:id="aa__001biog01_01.TEI.2.text.body.div.lg.l.1618"> <t>In andren vindt men minst welsprekenheid en zeden;</t></utt>
<utt xml:id="aa__001biog01_01.TEI.2.text.body.div.lg.l.1619"> <t>Maar hier zijn bei volmaekt, de deugt en kracht van reden.</t></utt>
</event>
from ucto.
I guess ideally we should check if Paragraph is in ACCEPTED_DATA
and if not fall back on Sentences (and if that isn't allowed, on Words)
from ucto.
For now , I hacked some code to handle utterances like sentences. So directly add Words.
Please test
from ucto.
Works!
from ucto.
Related Issues (20)
- Processor 'ucto.1' is used for annotationtype 'paragraph' but there is no corresponding <annotator> referring to it in the annotation declaration block. HOT 6
- ucto breaks on empty FoLiA comment HOT 1
- problems with 'complex' file names using the -c option HOT 3
- add a rule for ROMAN numbers
- interactive ucto seems broken
- passthru mode should not be combined with other language options
- ucto creates invalid folia HOT 2
- Update debian package for v0.21
- Byte-order mark followed by space or tab results in Folia error HOT 7
- is this correct handling of FoLiA paragraphs with embedded Part nodes? HOT 4
- -T full option produces invalid FoLiA HOT 1
- Tokenization of t-style element that has font_typeface Feature HOT 19
- Validation of ucto output fails due to space character in FoLiA output from Piereling HOT 7
- ucto sometimes misses out on the <t> for <p> HOT 3
- IDs in UCTO in concert with tei2folia HOT 3
- Language detection default for 'unknown' language HOT 9
- Ucto with 'detectlanguages' : failure HOT 3
- remove some deprecated options HOT 6
- Ucto aborts on FoLiA creation
- Question: Concatenating word parts at soft hyphens HOT 77
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ucto.