1

The word length is 5. I want to delete the letter in position 0 and the letter in position 3

with python seems like this :

word = word[1:3] + word[4] #this is with python

The question is, How i can do it with snowball ?

4

1 回答 1

1

也许解决方案看起来像这样:

do(
    [substring] among (
            $p1 ($word_len == 5 delete)
      )
      markto $p2
      [substring] among (

            'cha' (atmark==$p2 delete)
      )
  )
于 2017-01-18T17:50:53.470 回答