/** * @param nonSplitListURL the nonSplitListURL to set */ @CreoleParameter(defaultValue="resources/regex-splitter/non-split-patterns.txt", comment="The URL to the non splits pattern list", suffixes="txt") public void setNonSplitListURL(ResourceReference nonSplitListURL) { this.nonSplitListURL = nonSplitListURL; }
@CreoleParameter(comment="The encoding used for reading the definition files", defaultValue="UTF-8") public void setEncoding(String newEncoding) { encoding = newEncoding; } public String getEncoding() {
/** * Sets the value of the <code>rulesURL</code> property which holds an URL * to the file containing the rules for this tokeniser. * @param newRulesURL */ @CreoleParameter(defaultValue="resources/tokeniser/DefaultTokeniser.rules", comment="The URL to the rules file", suffixes="rules") public void setRulesURL(ResourceReference newRulesURL) { rulesURL = newRulesURL; }
@Override @CreoleParameter(comment="Should this gazetteer diferentiate on case?", defaultValue="true") public void setCaseSensitive(Boolean newCaseSensitive) { caseSensitive = newCaseSensitive; }
@Optional @CreoleParameter(comment="Annotation name for the persons", defaultValue="Person") public void setPersonType(String newPersonType) { personType = newPersonType; }//setPersonType
/** * 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; }
@Optional @CreoleParameter(comment="Whether to export to stand-off XML rather than inline annotations", defaultValue="false") public void setUseStandOffXML(Boolean newValue) { if (newValue != null) useStandOffXML = newValue.booleanValue(); }
@Optional @CreoleParameter(comment="Whether or not to use a suffix for the dump files", defaultValue="true") public void setUseSuffixForDumpFiles(Boolean useOrNot) { if (useOrNot != null) this.useSuffixForDumpFiles = useOrNot.booleanValue(); }
/** * Annotation types for which the stats should be calculated */ @RunTime @CreoleParameter public void setAnnotationTypes(List<String> annotationTypes) { this.annotationTypes = annotationTypes; }
/** * URL of the folder to store output files into */ @RunTime @CreoleParameter(suffixes = "html") public void setOutputFolderUrl(URL outputFolderUrl) { this.outputFolderUrl = outputFolderUrl; } }
@Optional @CreoleParameter(comment = "A file of common words that should not be treated as units unless they are part of a compound unit", defaultValue = "resources/common_words.txt") public void setCommonURL(ResourceReference gazURL) { this.commonURL = gazURL; }
@Optional @CreoleParameter(comment="The encoding used for reading rules and lexicons") public void setEncoding(String encoding) { this.encoding = encoding; }
/** set the annotation set name*/ @RunTime @Optional @CreoleParameter(comment="Annotation set name where are the annotation types (annotationTypes)") public void setAnnotationSetName(String newAnnotationSetName) { annotationSetName = newAnnotationSetName; }//setAnnotationSetName
@RunTime @Optional @CreoleParameter(comment="The annotation set to be used as input that must contain 'Token' annotations") public void setInputASName(String newInputASName) { inputASName = newInputASName; }
@RunTime @Optional @CreoleParameter(comment="The annotation set to be used as output for 'Sentence' and 'Split' annotations") public void setOutputASName(String newOutputASName) { outputASName = newOutputASName; } public String getOutputASName() {
@RunTime @Optional @CreoleParameter( comment = "Should all Tokens be POS tagged or just those within baseSentenceAnnotationType?", defaultValue = "true") public void setPosTagAllTokens(Boolean allTokens) { posTagAllTokens = allTokens; } public Boolean getPosTagAllTokens() {
/** * Sets the name of annotation set that should be used for storing new * annotations * * @param outputASName */ @RunTime @Optional @CreoleParameter(comment="The annotation set to be used for the generated annotations") public void setOutputASName(String outputASName) { this.outputASName = outputASName; }
@RunTime @Optional @CreoleParameter(defaultValue="Person;Location;Date", comment="A list of the new names to be used instead of the ANNIE types given for dumping") public void setDumpTypes(List<String> newTypes) { dumpTypes = newTypes; }
@RunTime @Optional @CreoleParameter(comment="The name of the annotation set used for output") public void setOutputASName(String newOutputASName) { outputASName = newOutputASName; }
@RunTime @Optional @CreoleParameter(comment = "Throw an exception when there are none of the required input annotations (Token) are present in the input set", defaultValue = "true") public void setFailOnMissingInputAnnotations(Boolean fail) { failOnMissingInputAnnotations = fail; }