Subcorpus from concordance: AttrNotFound

15 views
Skip to first unread message

fbild...@web.de

unread,
Oct 18, 2024, 6:15:34 AM10/18/24
to NoSketch Engine
[manatee 2.225.8, bonito 5.71.15, crystal 2.178.2]

Dear all,

I am constantly getting error messages whenever I try to create a subcorpus from a concordance in Crystal, e.g.:

Creating suborpus failed: "AttrNotFound(Sentence)"

This happens with all the corpora I have installed and regardless of the structure chosen in the "Limit the context with" menu.

However, the "s" structural attribute (for example) is definitely there, it is apparently used in generating the "sentence view" (as opposed to KWIC), and I can view and export it as markup in a concordance.  

corpinfo -d KoGraUK_v3Mini gives me:

...

STRUCTURE "s" {
    DEFAULTLOCALE "C"
    ENCODING "UTF-8"
    LABEL "Sentence"
    LANGUAGE ""
    NESTED ""
    PATH "/var/lib/manatee/data/KoGraUK_v3Mini/s."
    TYPE "file64"
    ...
}

...


The PATH does look a little suspicious to me (but maybe "s." is just a prefix and will be expanded). 

In /var/lib/manatee/data/KoGraUK_v3Mini, I have  

s.rng

and then a bunch of other files referring to attributes of the s-structure (for instance, "type") such as:

s.type.fsa
s.type.lex
s.type.lex.idx
s.type.lex.isrt
s.type.lex.srt
s.type.regex.lex
s.type.regex.lex.idx
s.type.regex.lex.srt
s.type.regex.rev
s.type.regex.rev.cnt
s.type.regex.rev.cnt64
s.type.regex.rev.idx
s.type.rev
s.type.rev.cnt
s.type.rev.cnt64
s.type.rev.idx
s.type.text
s.type.token


Does anybody know what is going wrong here and how to fix it?

Many thanks, 

Felix


--

Felix Bildhauer
Leibniz-Institut für Deutsche Sprache
R5 6-13
D-68161 Mannheim

Miloš Jakubíček

unread,
Oct 18, 2024, 9:37:11 AM10/18/24
to fbild...@web.de, NoSketch Engine
Hi Felix,

It looks like somewhere the LABEL ("Sentence") is used instead of the actual structure name ("s"). Does commenting out the line LABEL "Sentence" with a "#"- sign help (at least as a temporary workaround)?

Best
Milos

--
You received this message because you are subscribed to the Google Groups "NoSketch Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to noske+un...@sketchengine.co.uk.
To view this discussion on the web visit https://groups.google.com/a/sketchengine.co.uk/d/msgid/noske/d93303ac-f9b6-4a80-8574-725734a848a3n%40sketchengine.co.uk.

fbild...@web.de

unread,
Oct 18, 2024, 12:35:07 PM10/18/24
to NoSketch Engine, Miloš Jakubíček, NoSketch Engine, fbild...@web.de
Hi Milos,

thanks! Commenting out the LABEL in the registry file did the trick, subcorpus creation works now. I am wondering if this happens only to me / to my installation or if anybody else has experienced the same problem..

Best,
Felix

Reply all
Reply to author
Forward
0 new messages