Skip to content

Commit

Permalink
Amend notes
Browse files Browse the repository at this point in the history
  • Loading branch information
cjbarrie committed Jul 16, 2021
1 parent 8e5ef2c commit a7c60de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/get_seq_cos_sim.R
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ get_seq_cos_sim <- function(x,
for (i in seq_along(veclist)) {
target_embedding = veclist[[i]][["target_embedding"]]

# replace with cosine similarities for candidates with NA when target embedding NULL
# replace cosine similarities for candidate words with NA when target embedding NULL
if(is.null(target_embedding)){
cos_sim <- as.vector(rep(NA, length(candidates)))
}else{
Expand Down

0 comments on commit a7c60de

Please sign in to comment.