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

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

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

.coveringType(coveringAnnotationType)
.lowercase(lowercase)
.buildStringSequenceGenerator();
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$BuilderbuildStringSequenceGenerator

Javadoc

Generate a StringSequenceGenerator that directly returns Strings instead of LexicalPhrases.

Popular methods of PhraseSequenceGenerator$Builder

  • stopwordsFile
  • <init>
  • coveringType
  • featurePath
  • 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

  • Reading from database using SQL prepared statement
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getSystemService (Context)
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Best plugins for Eclipse
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