Tabnine Logo
AlignedString.delete
Code IndexAdd Tabnine to your IDE (free)

How to use
delete
method
in
de.tudarmstadt.ukp.dkpro.core.api.transform.alignment.AlignedString

Best Java code snippets using de.tudarmstadt.ukp.dkpro.core.api.transform.alignment.AlignedString.delete (Showing top 3 results out of 315)

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

  public static void applyChanges(AlignedString as, List<SofaChangeAnnotation> changes) {
    
    // If we remove or add stuff all offsets right of the change location
    // will change and thus the offsets in the change annotation are no
    // longer valid. If we move from right to left it works better because
    // the left offsets remain stable.
    Collections.reverse(changes);
    for (SofaChangeAnnotation c : changes) {
      if (OP_INSERT.equals(c.getOperation())) {
        // getContext().getLogger().log(INFO,
        // "Performing insert: "+a.getBegin()+"-"+a.getEnd());
        as.insert(c.getBegin(), c.getValue());
      }
      if (OP_DELETE.equals(c.getOperation())) {
        // getContext().getLogger().log(INFO,
        // "Performing delete: "+a.getBegin()+"-"+a.getEnd());
        as.delete(c.getBegin(), c.getEnd());
      }
      if (OP_REPLACE.equals(c.getOperation())) {
        // getContext().getLogger().log(INFO,
        // "Performing replace: "+a.getBegin()+"-"+a.getEnd());
        as.replace(c.getBegin(), c.getEnd(), c.getValue());
      }
    }
  }
}
origin: de.tudarmstadt.ukp.dkpro.core/de.tudarmstadt.ukp.dkpro.core.castransformation-asl

alignmentState.delete(a.getBegin(), a.getEnd());
origin: dkpro/dkpro-core

  break;
case DELETE:
  alignedString.delete(change.getStart(), change.getEnd());
  break;
case REPLACE:
de.tudarmstadt.ukp.dkpro.core.api.transform.alignmentAlignedStringdelete

Javadoc

Deletes data.

Popular methods of AlignedString

  • <init>
  • insert
  • replace
  • get
    Fetch data
  • resolve
  • addChangeListener
  • createBase
  • dataSegmentsToString
    Create a string representation of the segments. This is for debugging purposes.
  • dropSuperflourous
    If the given segment is a zero-length base segment, then it can be dropped. Zero-length oblique segm
  • fireChange
  • getAnchor
    Get an anchor at the specified position. Breaks up the segment at the given point if necessary. If t
  • getFirst
  • getAnchor,
  • getFirst,
  • getSegmentAt,
  • inverseResolve,
  • length,
  • updateCaches

Popular in Java

  • Finding current android device location
  • getContentResolver (Context)
  • onRequestPermissionsResult (Fragment)
  • findViewById (Activity)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • JFrame (javax.swing)
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Top Sublime Text 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