Skip to content

Commit

Permalink
track nonterminal implicature
Browse files Browse the repository at this point in the history
  • Loading branch information
breandan committed Nov 3, 2024
1 parent fc60fdf commit 322faca
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -239,10 +239,10 @@ fun CFG.maxParsableFragmentB(tokens: List<String>, pad: Int = 3): Pair<Int, Int>
println("Mono-edit bounds (R=${monoEditBounds.first}, " +
"L=${monoEditBounds.second})/${tokens.size} [delta=$delta] in ${boundsTimer.elapsedNow()}")

if (monoEditBounds != 0..tokens.size) {
println("Mono-edit fragment (R): " + maskEverythingButRange(tokens, 0..monoEditBounds.first).joinToString(" "))
println("Mono-edit fragment (L): " + maskEverythingButRange(tokens, monoEditBounds.second..tokens.size).joinToString(" "))
}
// if (monoEditBounds != 0..tokens.size) {
// println("Mono-edit fragment (R): " + maskEverythingButRange(tokens, 0..monoEditBounds.first).joinToString(" "))
// println("Mono-edit fragment (L): " + maskEverythingButRange(tokens, monoEditBounds.second..tokens.size).joinToString(" "))
// }
return monoEditBounds
}

Expand Down

0 comments on commit 322faca

Please sign in to comment.