TeangaNLP / teanga2

Teanga a dó
Apache License 2.0
0 stars 0 forks source link

Template Corpus #13

Open jmccrae opened 6 months ago

jmccrae commented 6 months ago

Allow support for template corpora with fixed fields, e.g., instead of having to call add_layer_meta repeatedly we can instead just have direct corpora

corpus = CoNLLUCorpus()
doc = corpus.add_doc("foobar")
doc.upos = ["ADP"]

We should also add a simple corpus with text, words, sentences, document, title, author