Skip to content

Commit

Permalink
Fix lookahead bug
Browse files Browse the repository at this point in the history
  • Loading branch information
l-acs committed Jan 25, 2024
1 parent 2c828a6 commit bf40422
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/preprocDisfluencies.R
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ a_b_sequence_lookahead <- function(df, errtypes_a, errtypes_b, forward_context =


filter(df_with_rhs_lookaheads,
if_any(rhs_cols, ~ . == 1) & if_any(matches(lookaheads_regex), ~ . == 1))
if_any(lhs_cols, ~ . == 1) & if_any(matches(lookaheads_regex), ~ . == 1))
}

count_a_b_sequences_lookahead <- function(df, errtypes_a, errtypes_b, forward_context = 1)
Expand Down

0 comments on commit bf40422

Please sign in to comment.