if (FALSE) {
##################################
# prerequisite: loaded ae emuDB
# (see ?load_emuDB for more information)
## Requery previous item of 'p' on level 'Phonetic'
sl1 = query(ae, "Phonetic == p")
requery_seq(ae, sl1, offset = -1)
## Requery context (adding previuos and following elements)
## of 'p' on phonetic level
requery_seq(ae, sl1, offset = -1, length = 3)
## Requery previous item of n->t sequence
sl2 = query(ae, "[Phoneme == n -> Phoneme == t]")
requery_seq(ae, sl2, offset = -1)
## Requery last item within n->t sequence
requery_seq(ae, sl2, offsetRef = 'END')
## Requery following item after n->t sequence
requery_seq(ae, sl2, offset = 1, offsetRef = 'END')
## Requery context (previous and following items) of n->t sequence
requery_seq(ae, sl2, offset = -1, length = 4)
## Requery next word contexts (sequence includes target word)
sl3 = query(ae, "Text == to")
requery_seq(ae, sl3, length = 2)
## Requery following two word contexts, ignoring segment
## sequences that are out of bundle end bounds
requery_seq(ae, sl3, length = 3, ignoreOutOfBounds = TRUE)
}
Run the code above in your browser using DataLab