@Before
public void setUp() throws Exception {
dir = new RAMDirectory();
analyzer = new UIMAPayloadsAnalyzer("/HmmTaggerAggregate.xml");
writer = new IndexWriter(dir, new IndexWriterConfig(Version.LUCENE_33, analyzer));
Document doc = new Document();
doc.add(new Field("title", "this is a dummy title containing an entity for London", Field.Store.YES,
Field.Index.ANALYZED));