Skip to content

Commit

Permalink
all get_dbpedia_uris()-methods have arg types_src #55
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Blätte authored and Andreas Blätte committed May 4, 2024
1 parent f176912 commit 08e957a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
10 changes: 10 additions & 0 deletions R/dbpedia.R
Expand Up @@ -618,6 +618,7 @@ setMethod(
doc_id = NA_character_,
types = character(),
support = 20,
types_src = c("DBpedia", "Wikidata"),
verbose = TRUE
) {

Expand All @@ -633,6 +634,7 @@ setMethod(
doc_id = doc_id,
types = types,
support = support,
types_src = types_src,
verbose = verbose
)
}
Expand Down Expand Up @@ -755,6 +757,7 @@ setMethod(
logfile = NULL,
types = character(),
support = 20,
types_src = c("DBpedia", "Wikidata"),
expand_to_token = FALSE,
drop_inexact_annotations = TRUE,
verbose = TRUE
Expand Down Expand Up @@ -796,6 +799,7 @@ setMethod(
doc_id = name(x),
types = types,
support = support,
types_src = types_src,
verbose = verbose
)

Expand Down Expand Up @@ -938,6 +942,7 @@ setMethod(
logfile = NULL,
types = character(),
support = 20,
types_src = c("DBpedia", "Wikidata"),
max_len = 7990L,
overlap = 1000L,
expand_to_token = FALSE,
Expand Down Expand Up @@ -966,6 +971,7 @@ setMethod(
logfile = logfile,
types = types,
support = support,
types_src = types_src,
expand_to_token = expand_to_token,
verbose = if (progress) FALSE else verbose
)
Expand Down Expand Up @@ -1016,6 +1022,7 @@ setMethod(
logfile = NULL,
types = character(),
support = 20,
types_src = c("DBpedia", "Wikidata"),
verbose = TRUE,
progress = FALSE
) {
Expand Down Expand Up @@ -1053,6 +1060,7 @@ setMethod(
logfile = logfile,
types = types,
support = support,
types_src = types_src,
verbose = if (progress) FALSE else verbose
)[, "doc" := docname]
}
Expand Down Expand Up @@ -1094,6 +1102,7 @@ setMethod(
logfile = NULL,
types = character(),
support = 20,
types_src = c("DBpedia", "Wikidata"),
expand_to_token = FALSE,
drop_inexact_annotations = TRUE,
verbose = if (progress) FALSE else verbose,
Expand Down Expand Up @@ -1198,6 +1207,7 @@ setMethod(
logfile = logfile,
types = types,
support = support,
types_src = types_src,
verbose = verbose
)

Expand Down
2 changes: 1 addition & 1 deletion man/entity_types_map.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions man/get_dbpedia_uris.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 08e957a

Please sign in to comment.