You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the following chunk I try to identify which types of named entities occur in a particular paragraph. In this case, the paragraph does not contain any named entities. This is returned by s_attributes() as "character(0)". I assume that this is okay. However, s_attributes() also prints a warning message each time this happens.
character(0)
Warning message:
In check_strucs(corpus = corpus, s_attribute = s_attribute, strucs = struc, :
struc vector has length 0
I assume that this warning message is there because there probably are scenarios in which missing struc vectors have potentially negative implications. However, in this case, I would think that s_attributes() does what it is supposed to do?
So, from a user perspective, what should I make of this warning? Maybe it should be more telling? On another note, if the object is not a single subcorpus but a subcorpus bundle, this warning might be shown a lot of times. This can be irritating if returning "character(0)" is, in fact, correct behavior of s_attributes().
The text was updated successfully, but these errors were encountered:
In the following chunk I try to identify which types of named entities occur in a particular paragraph. In this case, the paragraph does not contain any named entities. This is returned by
s_attributes()
as "character(0)". I assume that this is okay. However,s_attributes()
also prints a warning message each time this happens.I assume that this warning message is there because there probably are scenarios in which missing struc vectors have potentially negative implications. However, in this case, I would think that
s_attributes()
does what it is supposed to do?So, from a user perspective, what should I make of this warning? Maybe it should be more telling? On another note, if the object is not a single subcorpus but a subcorpus bundle, this warning might be shown a lot of times. This can be irritating if returning "character(0)" is, in fact, correct behavior of
s_attributes()
.The text was updated successfully, but these errors were encountered: