
de.citec.scie.annotators.AnnotationCounter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scie-core Show documentation
Show all versions of scie-core Show documentation
Contains the SCIE main application and the CLI interface.
This project integrates the named entity recognition (NER), the
PDF import and the classification and interfaces with the UIMA framework.
The command line interface can be used to produce a set of UIMA XCAS files.
/*
* SCIE -- Spinal Cord Injury Information Extraction
* Copyright (C) 2013, 2014
* Raphael Dickfelder, Jan Göpfert, Benjamin Paaßen, Andreas Stöckel
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see .
*/
package de.citec.scie.annotators;
/**
* Used to count the number of unique annotations.
*/
public class AnnotationCounter {
private static long count = 1L;
/**
* Returns a unique id. Uniqueness is only guaranteed until reset() is
* called.
*
* @return a unique id.
*/
public static long getUniqueId() {
return count++;
}
/**
* Resets the id counter. The next id will then be 1.
*/
public static void reset() {
count = 1L;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy