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

Feature/in out folder #23

Merged
merged 3 commits into from
Jul 6, 2020
Merged

Feature/in out folder #23

merged 3 commits into from
Jul 6, 2020

Conversation

oktaal
Copy link
Member

@oktaal oktaal commented Jul 1, 2020

This changes the parsing to extract everything to an "in" folder and then send the output of corpus2alpino and the merging to an "out" folder. This way archives containing existing xml files can be parsed e.g. a TEI called tei.xml would have a folder tei.xml in the output, contain 1.xml, 2.xml, ... n.xml for every parsed sentence. This also fixes a whole bunch of other bugs with processing.

I've also updated the naming conventions, the example above would get a sentence ID of tei.xml:1 prefixed with the component. Components are titled using slashes (as their directory names).

In the future these changes will also make it feasible to automatically merge chat and pre-annotated lassy files (#18, UUDigitalHumanitieslab/corpus2alpino#7).

Copy link
Contributor

@JeltevanBoheemen JeltevanBoheemen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@@ -5,6 +5,11 @@
<?=$this->session->flashdata('message'); ?>
</div>
<?php } ?>
<?php if ($this->session->flashdata('error')) { ?>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea

@oktaal oktaal merged commit ceb02c0 into develop Jul 6, 2020
@oktaal oktaal deleted the feature/in-out-folder branch July 6, 2020 08:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants