Codota Logo
PhraseSequenceGenerator$Builder.filterRegex
Code IndexAdd Codota to your IDE (free)

How to use
filterRegex
method
in
de.tudarmstadt.ukp.dkpro.core.api.io.sequencegenerator.PhraseSequenceGenerator$Builder

Best Java code snippets using de.tudarmstadt.ukp.dkpro.core.api.io.sequencegenerator.PhraseSequenceGenerator$Builder.filterRegex (Showing top 2 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
DateTime d =
  • Codota Iconnew DateTime()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseDateTime(text)
  • Codota IconObject instant;new DateTime(instant)
  • Smart code suggestions by Codota
}
origin: de.tudarmstadt.ukp.dkpro.core/de.tudarmstadt.ukp.dkpro.core.mallet-asl

.stopwordsReplacement(stopwordsReplacement)
.featurePath(tokenFeaturePath)
.filterRegex(filterRegex)
.filterRegexReplacement(filterRegexReplacement)
.coveringType(coveringAnnotationType)
origin: de.tudarmstadt.ukp.dkpro.core/de.tudarmstadt.ukp.dkpro.core.io.text-asl

@Override
public void initialize(UimaContext context)
    throws ResourceInitializationException
{
  super.initialize(context);
  try {
    sequenceGenerator = new PhraseSequenceGenerator.Builder()
        .featurePath(featurePath)
        .filterRegex(numberRegex)
        .filterRegexReplacement(NUMBER_REPLACEMENT)
        .stopwordsFile(stopwordsFile)
        .stopwordsReplacement(STOPWORD_REPLACEMENT)
        .coveringType(coveringType)
        .buildStringSequenceGenerator();
  }
  catch (IOException e) {
    throw new ResourceInitializationException(e);
  }
}
de.tudarmstadt.ukp.dkpro.core.api.io.sequencegeneratorPhraseSequenceGenerator$BuilderfilterRegex

Javadoc

This method can be called multiple times in order to add multiple regular expressions for filtering. If a token matches any of the regular expression, it is omitted.

Popular methods of PhraseSequenceGenerator$Builder

  • stopwordsFile
  • <init>
  • buildStringSequenceGenerator
    Generate a StringSequenceGenerator that directly returns Strings instead of LexicalPhrases.
  • coveringType
  • featurePath
  • filterRegexReplacement
  • stopwordsReplacement
  • build
    Generate a PhraseSequenceGenerator
  • characters
    If set to true, the generated phrases contain characters instead of tokens or other annotations.
  • lowercase
  • minTokenLength
  • stopwordsURL
  • minTokenLength,
  • stopwordsURL

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getExternalFilesDir (Context)
  • onCreateOptionsMenu (Activity)
  • setContentView (Activity)
  • Permission (java.security)
    Abstract class for representing access to a system resource. All permissions have a name (whose inte
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Set (java.util)
    A collection that contains no duplicate elements. More formally, sets contain no pair of elements e1
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • ConcurrentHashMap (java.util.concurrent)
    A hash table supporting full concurrency of retrievals and adjustable expected concurrency for updat
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.This exception may include information for locating the er
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now