Tabnine Logo
PhraseSequenceGenerator$Builder.featurePath
Code IndexAdd Tabnine to your IDE (free)

How to use
featurePath
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.featurePath (Showing top 3 results out of 315)

origin: de.tudarmstadt.ukp.dkpro.core/de.tudarmstadt.ukp.dkpro.core.mallet-asl

.stopwordsFile(stopwordsFile)
.stopwordsReplacement(stopwordsReplacement)
.featurePath(tokenFeaturePath)
.filterRegex(filterRegex)
.filterRegexReplacement(filterRegexReplacement)
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);
  }
}
origin: de.tudarmstadt.ukp.dkpro.core/de.tudarmstadt.ukp.dkpro.core.mallet-asl

@Override
public void initialize(UimaContext context)
    throws ResourceInitializationException
{
  super.initialize(context);
  ParallelTopicModel model;
  try {
    getLogger().info("Loading model file " + modelLocation);
    model = ParallelTopicModel.read(modelLocation);
    if (maxTopicAssignments <= 0) {
      maxTopicAssignments = model.getNumTopics() / 10;
    }
  }
  catch (Exception e) {
    throw new ResourceInitializationException(e);
  }
  getLogger().info("Model loaded.");
  inferencer = model.getInferencer();
  malletPipe = new TokenSequence2FeatureSequence(model.getAlphabet());
  try {
    sequenceGenerator = new PhraseSequenceGenerator.Builder()
        .featurePath(tokenFeaturePath)
        .minTokenLength(minTokenLength)
        .lowercase(lowercase)
        .buildStringSequenceGenerator();
  }
  catch (IOException e) {
    throw new ResourceInitializationException(e);
  }
}
de.tudarmstadt.ukp.dkpro.core.api.io.sequencegeneratorPhraseSequenceGenerator$BuilderfeaturePath

Popular methods of PhraseSequenceGenerator$Builder

  • stopwordsFile
  • <init>
  • buildStringSequenceGenerator
    Generate a StringSequenceGenerator that directly returns Strings instead of LexicalPhrases.
  • coveringType
  • filterRegex
    This method can be called multiple times in order to add multiple regular expressions for filtering.
  • 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
  • scheduleAtFixedRate (Timer)
  • runOnUiThread (Activity)
  • compareTo (BigDecimal)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • JList (javax.swing)
  • 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