Coder Social home page Coder Social logo

zeichenkette / dgd2cmdi Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 2.0 6.32 MB

dgd metadata and resource conversion to clarin cmdi:

Home Page: http://fkuhn.github.io/dgd2cmdi/

License: BSD 3-Clause "New" or "Revised" License

Python 53.54% XSLT 46.46%

dgd2cmdi's People

Watchers

 avatar  avatar  avatar

Forkers

denis-arnold

dgd2cmdi's Issues

profile update

implement a method to update the profile of a cmdi file are finalization.

prevent redundant finalizing step

when building the final output, restrict this step to the corpora in the configuration yml file.
Currently, the intermediate output folders are parsed and every resource found is finalized again.

multi session processing of speaker information

When adding additional speaker information to a speaker element found in an event, the method speaker2event() will iterate over all speaker-elements via xpath('//Speaker') found in the current session of the event file and check, whether the label of the iterated speaker-elements and the selected speaker are the same. If yes, it will add the additional information to the speaker-element by adding them as sub-element.
After adding the information, speaker2event() sets a triple with event, speaker and label of speaker-element of the event. This triple is used check if the speaker already has been added to the event to prevent multiple entries of the additional information.
However, there might be the case that an events holds more than one recording session and therefore a speaker can be part of these two sessions. According to the conditional defined above, additional information can be written to one matching-speaker element. A second session with the same speaker will then not get the additonal information.

Possible solution:

Add an outer loop to iterate over Sessions with xpath('//Session') and set the stop-condition for sessions, not for events.

method is named speaker2event_session()

move to dev branch

avoid changes to master when editing documentation and tutorial notebooks

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.