divvun / corpustools Goto Github PK
View Code? Open in Web Editor NEWTools to manage and convert GiellaLT corpus files
Home Page: https://giellalt.github.io/CorpusTools/
License: GNU General Public License v3.0
Tools to manage and convert GiellaLT corpus files
Home Page: https://giellalt.github.io/CorpusTools/
License: GNU General Public License v3.0
The Kven-Norwegian parallel corpus isn't functional because of colons between the words in the Norwegian sentences. Because of this, it is not possible to use "extended search" with multiple words from Norwegian to Kven. This is also the case for some Kven sentences, but not all.
De : som : : ikke : : stiller : med : : | bil | : i : : kortesjen : oppfordres til : : å : : delta : langs : : ruta , : : med : : flagg : og : : hilsener . :\n :\n -- | -- | --
Niitä jokka ei ole myötä piili korteesi ssa pyyethään olemhaan myötä ruutan pitkin fla kk u i n ja tervheisten kans . :\n :\n
https://packages.ubuntu.com/jammy/python3-poetry is version 1.1.12
, which results in:
RuntimeError: The Poetry configuration is invalid:
- Additional properties are not allowed ('group' was unexpected)
I've disabled building it on 22.04 (Jammy).
In general, pyproject.toml
projects are too new for all supported Ubuntu/Debian. There is no support at all on Ubuntu 20.04 (Focal).
Earlier, if the parallelization went bad for some sentences, it used to be corrected later in the text. Now, however, it seems that there are no attempts to parallelize after the first one: If there is one error, the rest of the document is also out of sync.
This can be seen by reparallelizing any old file. The old parallelizations have inaccuracies in some sentences but then corrects themselves later in the text. The new ones, on the other hand, are out of sync after an error occurs.
Example text with old and new parallelization:
Old commit (from March): giellalt/corpus-nob@6a4c3f4
New commit (today): giellalt/corpus-nob@8713bd4
Det kan virke som at noe går galt et sted. I den fila jeg prøver å konvertere med korp_mono.py
, ligger det analyser av typen
"<1024x768>"
"1024x" Err/MissingSpace"768" Num @HNOUN #2->0
Som da gjør at scriptet krasjer med følgende melding (de første tre linjene har jeg skrevet ut slik at jeg skulle finne ut hvordan inputtet så ut.
anders@debian:~/corpus/corpus-fao$ korp_mono --skip-existing --ncpus most analysed/blogs/web_mix.txt.xml
--skip-existing given. Skipping 0 files that are already processed
Processing 1 files in parallel (9 workers)
word_form='1024x768'
lemma='1024x_∞_@HNOUN #2->0'
rest_cohort='\t"1024x" Err/MissingSpace"768" Num @HNOUN #2->0'
[1/1 FAILED: /home/anders/corpus/corpus-fao/analysed/blogs/web_mix.txt.xml
list index out of range
concurrent.futures.process._RemoteTraceback:
"""
Traceback (most recent call last):
File "/home/anders/.pyenv/versions/3.11.1/lib/python3.11/concurrent/futures/process.py", line 256, in _process_worker
r = call_item.fn(*call_item.args, **call_item.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/anders/projects/CorpusTools/corpustools/korp_mono.py", line 528, in process_file
make_vrt_xml(file, analysed_file.lang),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/anders/projects/CorpusTools/corpustools/korp_mono.py", line 547, in make_vrt_xml
make_sentences(valid_sentences(old_root.find(".//body/dependency").text), lang)
File "/home/anders/projects/CorpusTools/corpustools/korp_mono.py", line 888, in make_sentences
return [
^
File "/home/anders/projects/CorpusTools/corpustools/korp_mono.py", line 889, in <listcomp>
make_sentence(current_sentence, current_lang) for current_sentence in sentences
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/anders/projects/CorpusTools/corpustools/korp_mono.py", line 879, in make_sentence
[
File "/home/anders/projects/CorpusTools/corpustools/korp_mono.py", line 880, in <listcomp>
make_analysis_tuple(word_form, rest_cohort, current_lang)
File "/home/anders/projects/CorpusTools/corpustools/korp_mono.py", line 840, in make_analysis_tuple
maybe_pos = parts[1].replace("_∞_", "").strip()
~~~~~^^^
IndexError: list index out of range
Package build sanity check says:
File "corpustools/test/test_adder.py", line 130
SyntaxError: bytes can only contain ASCII literal characters.
File "corpustools/test/test_namechanger.py", line 474
SyntaxError: bytes can only contain ASCII literal characters.
Jf flyttinga av grammatikkontrollsjekkemodulen. Tanken er at github.com/giellalt berre inneheld språkleg materiale + dokumentasjon, alt anna i anten divvun eller giellatekno. Einaste unnataket er giella-core 🙂
Dette burde ikke skje.
Today we have translated_from, so that text written originally in the language of the corpus cannot be distinguished from text where the orignal language is not yet annotated. We want to do this distinction.
The language model file rm-rlo.wm should be renamed to rmy-rlo.wm
to follow file naming convention. Currently the file is ignored when creating a Classifier
in text_cat.py.
A good number (19) of the language models in the lm/
directory use language codes that are not defined in ISO 639-2. I looked for the codes in the repository and on https://giellalt.github.io/, but haven't been able to find them. Could you document their signification?
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.