CA: Keep query for examples in result data frame
Change-Id: I241d9a3fbd92550a3085cc554cef4645302c4df8
diff --git a/R/collocationAnalysis.R b/R/collocationAnalysis.R
index 2117da9..7a83140 100644
--- a/R/collocationAnalysis.R
+++ b/R/collocationAnalysis.R
@@ -185,7 +185,7 @@
dplyr::arrange(dplyr::desc(logDice))
}
if (addExamples && length(result) > 0) {
- result$xquery <-buildCollocationQuery(
+ result$query <-buildCollocationQuery(
result$node,
result$collocate,
leftContextSize = leftContextSize,
@@ -194,7 +194,7 @@
)
result$example <- findExample(
kco,
- query = result$xquery,
+ query = result$query,
vc = result$vc
)
}