We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
We should expose this function I find in cl.h
int cl_struc_values(Attribute *attribute);
The text was updated successfully, but these errors were encountered:
In fact, this function is exposed, but it is flawed: Using it triggers loading the corpus with a different directory, see the following example.
library(polmineR) library(RcppCWB) use("GermaParl2") corpus_registry_dir("GERMAPARL2MINI") # 1 registry dir x <- corpus("GERMAPARL2MINI") corpus_registry_dir("GERMAPARL2MINI") # 1 registry dir cl_struc_values( corpus = x@corpus, s_attribute = "p", registry = x@registry_dir ) corpus_registry_dir("GERMAPARL2MINI") # 2nd registry dir returned
Sorry, something went wrong.
I think this is an issue with using normalizePath() in cl_struc_values(). See the function definition:
normalizePath()
cl_struc_values()
cl_struc_values <- function(corpus, s_attribute, registry = Sys.getenv("CORPUS_REGISTRY")){ check_corpus(corpus = corpus, registry = registry, cqp = FALSE) registry <- normalizePath(path.expand(registry)) .cl_struc_values(corpus = corpus, s_attribute = s_attribute, registry = registry) }
On macOS, normalizePath() will happen "/private" to the path, see:
tempdir() normalizePath(tempdir())
cl_struc_values() using fs::path() #77
5daa657
No branches or pull requests
We should expose this function I find in cl.h
The text was updated successfully, but these errors were encountered: