/** Create a new empty TaggedEntity from scratch. */ public TaggedEntity() { rootElement = createEle(); rootElement.setDraggable(Element.DRAGGABLE_TRUE); setTag(""); setLemma(""); setText(""); }
/** * Use this constructor when the rootElement is already a valid taggedEntity. * * @param root */ public TaggedEntity(Element root) { assert root != null; this.rootElement = root; if (getLemma().isEmpty()) setLemma(getText()); root.setDraggable(Element.DRAGGABLE_TRUE); root.setClassName("nerve-taggedEntity"); }