Skip to content

Commit

Permalink
Setup Testing
Browse files Browse the repository at this point in the history
  • Loading branch information
FBerding committed Jun 7, 2023
1 parent 680ffd6 commit 44c8a0f
Show file tree
Hide file tree
Showing 17 changed files with 376 additions and 13 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@ tmp
checkpoints
udpipe_models
language_models
man
.Rhistory
*.h5
6 changes: 3 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ Imports: Rcpp (>= 1.0.10),
abind,
text2vec,
doParallel,
methods,
quanteda.textmodels
methods
LinkingTo: Rcpp, RcppArmadillo
RoxygenNote: 7.2.3
Encoding: UTF-8
Expand All @@ -54,7 +53,8 @@ Depends:
Suggests:
knitr,
rmarkdown,
testthat (>= 3.0.0)
testthat (>= 3.0.0),
quanteda.textmodels
Config/testthat/edition: 3
VignetteBuilder: knitr
LazyData: true
2 changes: 0 additions & 2 deletions R/aux_fct.R
Original file line number Diff line number Diff line change
Expand Up @@ -519,9 +519,7 @@ get_synthetic_cases<-function(embedding,

#transform array to matrix
feature_names=dimnames(embedding)[3]
save(embedding,file="test_array.rda")
embedding=array_to_matrix(embedding)
save(embedding,file="test_matrix.rda")
#Calculate the number of chunks for every cases
n_chunks<-get_n_chunks(text_embeddings = embedding,
times = times,
Expand Down
22 changes: 22 additions & 0 deletions inst/CITATION
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
citHeader("To cite iotarelr in publications use:")

bibentry(bibtype="Manual",
title="AI for Education (aifeducation). A R package for educators and
reserachers of the educational and social sciences.",

author=c(person(given="Florian",family="Berding"),
person(given="Julia", family="Pargmann"),
person(given="Elisabeth", family="Riebenbauer"),
person(given="Karin", family="Rebmann"),
person(given="Andreas", family="Slopinski")
),

year="2023",

url="ttps://fberding.github.io/aifeducation/index.html",

textVersion="Florian Berding, Julia Pargmann, Elisabeth Riebenbauer,
Karin Rebmann, and Andreas Slopinski (2023). AI for Education (aifeducation).
A R package for educators and reserachers of the educational and social sciences.
URL=https://fberding.github.io/aifeducation/index.html"
)
19 changes: 19 additions & 0 deletions man/array_to_matrix.Rd

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

80 changes: 80 additions & 0 deletions man/create_longformer_model.Rd

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

74 changes: 74 additions & 0 deletions man/create_roberta_model.Rd

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

22 changes: 22 additions & 0 deletions man/get_n_chunks.Rd

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

2 changes: 1 addition & 1 deletion man/train_tune_bert_model.Rd

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

73 changes: 73 additions & 0 deletions man/train_tune_longformer_model.Rd

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

Loading

0 comments on commit 44c8a0f

Please sign in to comment.