From c8636eb5628d18483cc1743dfe87ef34d909fbbe Mon Sep 17 00:00:00 2001 From: Gede Primahadi Wijaya Rajeg Date: Mon, 31 Jul 2023 00:09:58 +0100 Subject: [PATCH] Add codes to edit the mapping of the ADVERSARY metaphor --- codes/MARAH-mapping-edits-code.R | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/codes/MARAH-mapping-edits-code.R b/codes/MARAH-mapping-edits-code.R index e1abed4..76dcf63 100644 --- a/codes/MARAH-mapping-edits-code.R +++ b/codes/MARAH-mapping-edits-code.R @@ -44,4 +44,10 @@ metaphor_tokenbased_mapping <- metaphor_tokenbased_mapping %>% MAPPING %in% c("loss of control over anger is explosion of container", "intentional loss of control over anger is causing explosion of container"), "(intentional) loss of control over anger is (causing) explosion of container") - ) \ No newline at end of file + ) + +# adversary metaphor (token-based dataset) +metaphor_tokenbased_mapping <- metaphor_tokenbased_mapping |> + mutate(MAPPING = replace(MAPPING, + MAPPING_ID == "MAP3" & MP %in% c("kompromi dengan node", "konfrontasi terhadap node"), + "attempt to control anger is combating opponent (e.g., fighting, confronting)")) \ No newline at end of file