generalize EventExtractor to allow other types of nodes and add "annos" mapping to KWIC