Tabnine Logo
Compound.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
de.tudarmstadt.ukp.dkpro.core.api.segmentation.type.Compound
constructor

Best Java code snippets using de.tudarmstadt.ukp.dkpro.core.api.segmentation.type.Compound.<init> (Showing top 3 results out of 315)

origin: dkpro/dkpro-core

  @Override
  public FeatureStructure createFS(int addr, CASImpl cas)
  {
    if (Compound_Type.this.useExistingInstance) {
      // Return eq fs instance if already created
      FeatureStructure fs = Compound_Type.this.jcas.getJfsFromCaddr(addr);
      if (null == fs) {
        fs = new Compound(addr, Compound_Type.this);
        Compound_Type.this.jcas.putJfsFromCaddr(addr, fs);
        return fs;
      }
      return fs;
    }
    else {
      return new Compound(addr, Compound_Type.this);
    }
  }
};
origin: de.tudarmstadt.ukp.dkpro.core/de.tudarmstadt.ukp.dkpro.core.api.segmentation-asl

  @Override
  public FeatureStructure createFS(int addr, CASImpl cas)
  {
    if (Compound_Type.this.useExistingInstance) {
      // Return eq fs instance if already created
      FeatureStructure fs = Compound_Type.this.jcas.getJfsFromCaddr(addr);
      if (null == fs) {
        fs = new Compound(addr, Compound_Type.this);
        Compound_Type.this.jcas.putJfsFromCaddr(addr, fs);
        return fs;
      }
      return fs;
    }
    else {
      return new Compound(addr, Compound_Type.this);
    }
  }
};
origin: dkpro/dkpro-core

@Override
public void process(final JCas aJCas)
  throws AnalysisEngineProcessException
{
  for (Token token : select(aJCas, Token.class)) {
    final String coveredText = token.getText();
    DecompoundedWord result;
    result = ranker.highestRank(splitter.split(coveredText));
    if (!result.isCompound()) {
      continue;
    }
    final int beginIndex = token.getBegin();
    final Compound compound = new Compound(aJCas, beginIndex, token.getEnd());
    indexSplits(aJCas, result.getSplits(), beginIndex, token.getEnd(), null, compound);
    compound.addToIndexes();
  }
}
de.tudarmstadt.ukp.dkpro.core.api.segmentation.typeCompound<init>

Javadoc

Never called. Disable default constructor

Popular methods of Compound

  • addToIndexes
  • createSplitsFromFSArray
    Create a Split[] array from a FSArray
  • getBegin
  • getEnd
  • getSplits
    Returns a list of the fragments present in the leaves from the split tree stored in the splits array
  • getSplitsWithoutMorpheme
    Returns the splits from each leave from the split tree, excluding the linking morphemes
  • readObject
    Write your own initialization here
  • setBegin
  • setEnd
  • setSplits
    setter for splits - sets A word that can be decomposed into different parts.

Popular in Java

  • Parsing JSON documents to java classes using gson
  • scheduleAtFixedRate (Timer)
  • getApplicationContext (Context)
  • getContentResolver (Context)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Top PhpStorm plugins
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