MCPcopy Create free account
hub / github.com/GateNLP/gate-core / add

Method add

src/main/java/gate/AnnotationSet.java:72–72  ·  view source on GitHub ↗

Create and add an annotation with a pre-existing ID. This method should only be used when you have existing annotations with unique IDs, for example when reading the full contents of an annotation set from some saved representation. In normal use you should use the method {@link SimpleAnnotationSet#

(Integer id, Long start, Long end, String type,
          FeatureMap features)

Source from the content-addressed store, hash-verified

70 * document.
71 */
72 public void add(Integer id, Long start, Long end, String type,
73 FeatureMap features) throws InvalidOffsetException;
74
75 /**

Callers 15

_testGapMethod · 0.95
testAddDuplicateIDMethod · 0.95
testDifferMethod · 0.95
addToTypeIndexMethod · 0.95
annotateParagraphsMethod · 0.95
unpackMarkupMethod · 0.95
unpackCasMarkupMethod · 0.95
exportMethod · 0.95
actionPerformedMethod · 0.95
setValueAtMethod · 0.95
actionPerformedMethod · 0.95
testAnnicIndexingMethod · 0.65

Implementers 1

AnnotationSetImplsrc/main/java/gate/annotation/Annotati

Calls

no outgoing calls

Tested by 15

_testGapMethod · 0.76
testAddDuplicateIDMethod · 0.76
testDifferMethod · 0.76
testAnnicIndexingMethod · 0.52
testSearcherMethod · 0.52
executeMethod · 0.52
setUpMethod · 0.52
testImmutabilityMethod · 0.52
_subtestImmutabilityMethod · 0.52
testGetStringLongLongMethod · 0.52
testNodesByOffsetMethod · 0.52
testRemoveInexistantMethod · 0.52