Tabnine Logo
PhraseSequenceGenerator$Builder.filterRegex
Code IndexAdd Tabnine 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)

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
  • runOnUiThread (Activity)
  • getSystemService (Context)
  • compareTo (BigDecimal)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • JOptionPane (javax.swing)
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now