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
  • 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

  • Running tasks concurrently on multiple threads
  • setRequestProperty (URLConnection)
  • findViewById (Activity)
  • requestLocationUpdates (LocationManager)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Top 17 Plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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