本文整理汇总了Java中gate.creole.metadata.Optional类的典型用法代码示例。如果您正苦于以下问题:Java Optional类的具体用法?Java Optional怎么用?Java Optional使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Optional类属于gate.creole.metadata包,在下文中一共展示了Optional类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setReferenceDate
import gate.creole.metadata.Optional; //导入依赖的package包/类
@RunTime
@Optional
@CreoleParameter(comment = "Reference date of the document. Permissible date values are 'yyyy-MM-dd', " +
"annotation (document annotation holding the date)" +
"'today' (today's date), 'creationDate' (date file was created), " +
"'lastAccessDate' (date file was last accessed) and 'lastModifiedDate' (date file was last modified).",
defaultValue = "today")
public void setReferenceDate(String date) {
referenceDate = date;
}
示例2: setMimeType
import gate.creole.metadata.Optional; //导入依赖的package包/类
/** Set the specific MIME type for this document */
@Optional
@CreoleParameter(
comment = "MIME type of the document. If unspecified it will be "
+ "inferred from the file extension, etc.")
public void setMimeType(String newMimeType) {
this.mimeType = newMimeType;
}
示例3: setSourceUrlStartOffset
import gate.creole.metadata.Optional; //导入依赖的package包/类
/**
* Documents may be packed within files; in this case an optional pair of
* offsets refer to the location of the document. This method sets the start
* offset.
*/
@Override
@Optional
@CreoleParameter(
comment = "Start offset for documents based on ranges")
public void setSourceUrlStartOffset(Long sourceUrlStartOffset) {
this.sourceUrlStartOffset = sourceUrlStartOffset;
}
示例4: setSourceUrlEndOffset
import gate.creole.metadata.Optional; //导入依赖的package包/类
/**
* Documents may be packed within files; in this case an optional pair of
* offsets refer to the location of the document. This method sets the end
* offset.
*/
@Override
@Optional
@CreoleParameter(
comment = "End offset for documents based on ranges")
public void setSourceUrlEndOffset(Long sourceUrlEndOffset) {
this.sourceUrlEndOffset = sourceUrlEndOffset;
}
示例5: setDocument
import gate.creole.metadata.Optional; //导入依赖的package包/类
/**
* @param document the document to set
*/
@Override
@Optional
@RunTime
@CreoleParameter
public void setDocument(Document document) {
this.document = document;
}
示例6: setSuppressExceptions
import gate.creole.metadata.Optional; //导入依赖的package包/类
/**
* If true, suppresses all exceptions. If false, passes all exceptions, including
* exceptions indicating a timeout, on to the caller.
*/
@Optional
@CreoleParameter(defaultValue = "true",
comment = "Should all exceptions be suppressed and just a message be written to standard logger.info?")
public void setSuppressExceptions(Boolean yesno) {
suppressExceptions = yesno;
}
示例7: setOperators
import gate.creole.metadata.Optional; //导入依赖的package包/类
/**
* Sets the list of class names for any custom boolean operators.
* Classes must implement {@link gate.jape.constraint.ConstraintPredicate}.
*/
@Optional
@CreoleParameter(
comment = "Class names that implement gate.jape.constraint.ConstraintPredicate."
)
public void setOperators(List<String> operators) {
this.operators = operators;
}
示例8: setAnnotationAccessors
import gate.creole.metadata.Optional; //导入依赖的package包/类
/**
* Sets the list of class names for any custom
* {@link gate.jape.constraint.AnnotationAccessor}s.
*/
@Optional
@CreoleParameter(
comment = "Class names that implement gate.jape.constraint.AnnotationAccessor."
)
public void setAnnotationAccessors(List<String> annotationAccessors) {
this.annotationAccessors = annotationAccessors;
}
示例9: setInputASName
import gate.creole.metadata.Optional; //导入依赖的package包/类
/**
* @param inputASName the inputASName to set
*/
@CreoleParameter(comment="The name of the input annotation set.")
@Optional
@RunTime
public void setInputASName(String inputASName) {
this.inputASName = inputASName;
}
示例10: setOutputASName
import gate.creole.metadata.Optional; //导入依赖的package包/类
/**
* @param outputASName the outputASName to set
*/
@CreoleParameter(comment="The name of the output annotation set.")
@Optional
@RunTime
public void setOutputASName(String outputASName) {
this.outputASName = outputASName;
}
示例11: setStringFeature
import gate.creole.metadata.Optional; //导入依赖的package包/类
@RunTime
@Optional
@CreoleParameter(defaultValue = "",
comment = "Where to take the word string from, empty means underlying document string"
)
public void setStringFeature(String val) {
stringFeature = val;
}
示例12: setInstanceWeightFeature
import gate.creole.metadata.Optional; //导入依赖的package包/类
@RunTime
@Optional
@CreoleParameter(comment = "The feature that constains the instance weight. If empty, no instance weights are used",
defaultValue="")
public void setInstanceWeightFeature(String val) {
instanceWeightFeature = val;
}
示例13: setSeqEncoder
import gate.creole.metadata.Optional; //导入依赖的package包/类
/**
* The sequence to classification algorithm to use.
*/
@RunTime
@Optional
@CreoleParameter(comment = "The sequence to classification algorithm to use." )
public void setSeqEncoder(SeqEncoderEnum val) {
seqEncoderEnum = val;
}
示例14: setSequenceSpan
import gate.creole.metadata.Optional; //导入依赖的package包/类
@RunTime
@Optional
@CreoleParameter(comment = "For sequence learners, an annotation type "
+ "defining a meaningful sequence span. Ignored by non-sequence "
+ "learners.")
public void setSequenceSpan(String seq) {
this.sequenceSpan = seq;
}
示例15: setSequenceSpan
import gate.creole.metadata.Optional; //导入依赖的package包/类
@RunTime
@Optional
@CreoleParameter(comment = "For sequence learners, an annotation type "
+ "defining a meaningful sequence span. Ignored by non-sequence "
+ "learners. Needs to be in the input AS.")
public void setSequenceSpan(String seq) {
sequenceSpan = seq;
}