public final class DocumentIDAnnotationUtil extends Object
Modifier and Type | Field and Description |
---|---|
static String |
NO_DOCUMENT_ID |
Modifier and Type | Method and Description |
---|---|
static String |
getDeepDocumentId(org.apache.uima.jcas.JCas startingJcas)
Gets the document Id by progressing through 3 layers until an Id is found: starting JCas, Initial View, Plaintext View
|
static String |
getDocumentID(org.apache.uima.jcas.JCas jcas)
Check the jcas for a document id.
|
static String |
getDocumentIdForFile(org.apache.uima.jcas.JCas jcas)
Create a unique id for the document that can be used for an output filename or url.
|
public static final String NO_DOCUMENT_ID
public static String getDocumentID(org.apache.uima.jcas.JCas jcas)
getDeepDocumentId(JCas)
,
this method does not progress into deeper jcas layers/views.jcas
- ye olde ...NO_DOCUMENT_ID
public static String getDeepDocumentId(org.apache.uima.jcas.JCas startingJcas)
startingJcas
- initial JCas to start the checkingNO_DOCUMENT_ID
public static String getDocumentIdForFile(org.apache.uima.jcas.JCas jcas)
jcas
- -Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.