Skip to content
New issue

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

brackets of c() wrong in get_dbpedia_uris,subcorpus-method? #48

Closed
ablaette opened this issue Mar 31, 2024 · 1 comment
Closed

brackets of c() wrong in get_dbpedia_uris,subcorpus-method? #48

ablaette opened this issue Mar 31, 2024 · 1 comment

Comments

@ablaette
Copy link
Contributor

Just a suspicion: c() is meaningless here, but is it because the brackets are misplaced?

if (isTRUE(drop_inexact_annotations) & (any(is.na(tab[["cpos_right"]])) | any(is.na(tab[["cpos_left"]])))) {
    missing_cpos_idx <- unique(
      c(which(is.na(tab[["cpos_right"]])), which(is.na(tab[["cpos_left"]])))
    )
    cli_alert_warning(
      "Cannot map {length(missing_cpos_idx)} entit{?y/ies} exactly to tokenstream. Dropping {?it/them} from the annotation."
    )
    tab <- tab[-missing_cpos_idx, ]
  }
@ablaette
Copy link
Contributor Author

ablaette commented May 9, 2024

False alarm - the brackets are ok!

@ablaette ablaette closed this as completed May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant