本文整理汇总了Java中gate.creole.metadata.RunTime类的典型用法代码示例。如果您正苦于以下问题:Java RunTime类的具体用法?Java RunTime怎么用?Java RunTime使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
RunTime类属于gate.creole.metadata包,在下文中一共展示了RunTime类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setReferenceDate
import gate.creole.metadata.RunTime; //导入依赖的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: setDocument
import gate.creole.metadata.RunTime; //导入依赖的package包/类
/**
* @param document the document to set
*/
@Override
@Optional
@RunTime
@CreoleParameter
public void setDocument(Document document) {
this.document = document;
}
示例3: setGenWordShape
import gate.creole.metadata.RunTime; //导入依赖的package包/类
@RunTime
@CreoleParameter(
comment = "Generate word shape",
defaultValue = "false")
public void setGenWordShape(Boolean val) {
genWordShape = val;
}
示例4: setGenWordShapeShort
import gate.creole.metadata.RunTime; //导入依赖的package包/类
@RunTime
@CreoleParameter(
comment = "Generate short word shape",
defaultValue = "true")
public void setGenWordShapeShort(Boolean val) {
genWordShapeShort = val;
}
示例5: setStringFeature
import gate.creole.metadata.RunTime; //导入依赖的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;
}
示例6: setInstanceWeightFeature
import gate.creole.metadata.RunTime; //导入依赖的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;
}
示例7: setSeqEncoder
import gate.creole.metadata.RunTime; //导入依赖的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;
}
示例8: setSequenceSpan
import gate.creole.metadata.RunTime; //导入依赖的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;
}
示例9: setConfidenceThreshold
import gate.creole.metadata.RunTime; //导入依赖的package包/类
@RunTime
@CreoleParameter(defaultValue = "0.0", comment = "The minimum "
+ "confidence/probability for including "
+ "an annotation at application time. In the case of NER, the confidence "
+ "threshold is applied to the average for the entire entity.")
public void setConfidenceThreshold(Double confidenceThreshold) {
this.confidenceThreshold = confidenceThreshold;
}
示例10: setSequenceSpan
import gate.creole.metadata.RunTime; //导入依赖的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;
}
示例11: setAlgorithmParameters
import gate.creole.metadata.RunTime; //导入依赖的package包/类
@RunTime
@Optional
@CreoleParameter(comment = "Some of the learners take parameters. Parameters "
+ "can be entered here. For example, the LibSVM supports parameters.")
public void setAlgorithmParameters(String learnerParams) {
this.algorithmParameters = learnerParams;
algorithmParamtersChanged = true;
}
示例12: setOutputASName
import gate.creole.metadata.RunTime; //导入依赖的package包/类
@RunTime
@Optional
@CreoleParameter(comment = "If identical to the input AS, existing annotations are updated",
defaultValue = "LearningFramework")
public void setOutputASName(String oasn) {
this.outputASName = oasn;
}
示例13: setInputASName
import gate.creole.metadata.RunTime; //导入依赖的package包/类
/**
* sets name of the input annotaiton set
*
* @param inputAS
*/
@Optional
@RunTime
@CreoleParameter
public void setInputASName(String inputAS) {
this.inputASName = inputAS;
}
示例14: setGenPrefixes
import gate.creole.metadata.RunTime; //导入依赖的package包/类
@RunTime
@CreoleParameter(
comment = "If prefixes should get generated",
defaultValue = "false")
public void setGenPrefixes(Boolean val) {
genPrefixes = val;
}
示例15: setDocument
import gate.creole.metadata.RunTime; //导入依赖的package包/类
@Override
@Optional
@RunTime
@CreoleParameter(comment = "The document to process")
public void setDocument(Document doc) {
document = doc;
}