@Test public void testAmendStartsAndEndsPositions(){ String text = "had than the a pions we can mahe- to have one see from One chain jaica k one side from, anotes and - it T hit C Na an one chain, a hr a we can me one can heue the fire is are code , but I those order in fines, they to order n he obs Chai i al, hields. For example , supprene A. her chain sent He he second musi Ge It is like a code."; textUtils.amendStartsAndEndsPositions(text, 21, 313); }
public void amendStartsAndEndsPositions(String text, int startText, int endText) { String endPreviousText = text.substring(0, startText - 1); String currrentText = text.substring(startText, endText); String startNextText = text.substring(endText + 1, text.length()); LOG.info("[" + text + "]"); LOG.info("[" + currrentText + "]"); LOG.info("[" + endPreviousText + "]"); LOG.info("[" + startNextText + "]"); }
TextUtils extends CommonUtils { public void amendStartsAndEndsPositions(String text, int startText, int endText) { String endPreviousText = text.substring(0, startText - 1); String currrentText = text.substring(startText, endText); String startNextText = text.substring(endText + 1, text.length()); LOG.info("[" + text + "]"); LOG.info("[" + currrentText + "]"); LOG.info("[" + endPreviousText + "]"); LOG.info("[" + startNextText + "]"); } }
TextUtils extends CommonUtils { public void amendStartsAndEndsPositions(String text, int startText, int endText) { String endPreviousText = text.substring(0, startText - 1); String currrentText = text.substring(startText, endText); String startNextText = text.substring(endText + 1, text.length()); LOG.info("[" + text + "]"); LOG.info("[" + currrentText + "]"); LOG.info("[" + endPreviousText + "]"); LOG.info("[" + startNextText + "]"); }  }
TextUtils extends CommonUtils { public void amendStartsAndEndsPositions(String text, int startText, int endText) { String endPreviousText = text.substring(0, startText - 1); String currrentText = text.substring(startText, endText); String startNextText = text.substring(endText + 1, text.length()); LOG.info("[" + text + "]"); LOG.info("[" + currrentText + "]"); LOG.info("[" + endPreviousText + "]"); LOG.info("[" + startNextText + "]"); }  ImageHelperObject createOffsetPayload(Map<String, List<TermWithTermOffsets>> termWithOffsetsMap,
			String width, String height, Map<String, Map<String, String>> offsetPositionMap,
			Map<String, PageOverlapDetails> canvasOverlapDetailMap); Map<String, String> createCoordinateAnnotationFromImages(String query, Images images,
			ImageHelperObject imageHelper, Map<String, String> imageCanvasMap); int amendCrossCoordinates(Image crossImage, int next, int countTally, String[] queryArray,
			Map<String, String> crossCoordinates); Map<String, Object> createCoordinateAnnotation(String query, String coordinatePayload, boolean isW3c,
			ImageHelperObject imageHelper, Map<String, Map<String, TermOffsetStart>> termPositionMap,
			String queryString, PageParameters pageParams, boolean isMixedSearch, Map<String, String> imageCanvasMap,
			Map<String, String> crossXywhQueryMap); ImageHelperObject createImages(Map<String, List<TermWithTermOffsets>> termWithOffsetsMap, String width,
			String height, Map<String, Map<String, String>> offsetPositionMap,
			Map<String, PageOverlapDetails> canvasOverlapDetailMap); PositionListObjects sortMultiTermPosition(List<Object> positions, PageOverlapDetails overlapDetails,
			List<Positions> positionsList); List<String> workThoughOffsets(List<TermWithTermOffsets> termWithOffsetsList); List<Object> sortPositionsForMultiwordPhrase(List<TermWithTermOffsets> termWithOffsetsList,
			Map<String, String> offsetPositionMap, List<Positions> positionsList); Map<String, Object> createResource(String imageId, String query, boolean isW3c, String xywh,
			String annoUrl); void amendStartsAndEndsPositions(String text, int startText, int endText); static void main(String[] args); }
TextUtils extends CommonUtils { public void amendStartsAndEndsPositions(String text, int startText, int endText) { String endPreviousText = text.substring(0, startText - 1); String currrentText = text.substring(startText, endText); String startNextText = text.substring(endText + 1, text.length()); LOG.info("[" + text + "]"); LOG.info("[" + currrentText + "]"); LOG.info("[" + endPreviousText + "]"); LOG.info("[" + startNextText + "]"); }  ImageHelperObject createOffsetPayload(Map<String, List<TermWithTermOffsets>> termWithOffsetsMap,
			String width, String height, Map<String, Map<String, String>> offsetPositionMap,
			Map<String, PageOverlapDetails> canvasOverlapDetailMap); Map<String, String> createCoordinateAnnotationFromImages(String query, Images images,
			ImageHelperObject imageHelper, Map<String, String> imageCanvasMap); int amendCrossCoordinates(Image crossImage, int next, int countTally, String[] queryArray,
			Map<String, String> crossCoordinates); Map<String, Object> createCoordinateAnnotation(String query, String coordinatePayload, boolean isW3c,
			ImageHelperObject imageHelper, Map<String, Map<String, TermOffsetStart>> termPositionMap,
			String queryString, PageParameters pageParams, boolean isMixedSearch, Map<String, String> imageCanvasMap,
			Map<String, String> crossXywhQueryMap); ImageHelperObject createImages(Map<String, List<TermWithTermOffsets>> termWithOffsetsMap, String width,
			String height, Map<String, Map<String, String>> offsetPositionMap,
			Map<String, PageOverlapDetails> canvasOverlapDetailMap); PositionListObjects sortMultiTermPosition(List<Object> positions, PageOverlapDetails overlapDetails,
			List<Positions> positionsList); List<String> workThoughOffsets(List<TermWithTermOffsets> termWithOffsetsList); List<Object> sortPositionsForMultiwordPhrase(List<TermWithTermOffsets> termWithOffsetsList,
			Map<String, String> offsetPositionMap, List<Positions> positionsList); Map<String, Object> createResource(String imageId, String query, boolean isW3c, String xywh,
			String annoUrl); void amendStartsAndEndsPositions(String text, int startText, int endText); static void main(String[] args); static final String SERVICE_NAME; }