Examples of EEBOPreprocessing


Examples of de.tud.kom.stringutils.preprocessing.EEBOPreprocessing

  }
 
  private void addText(String text1, String text2, Document htmlOut, Element tdl, Element tdr){
    // match left column
    GST gst = new GST(text1);
    gst.setPreprocessingAlgorithm(new EEBOPreprocessing());
    gst.match(text2);
   
    int last1 = 0;
    for(GSTTile tile : gst.getTiles()){
      // for left column
      last1 = addTile(last1, text1, tile, htmlOut, tdl);
    }
   
    // add last part
    addTile(last1, text1, null, htmlOut, tdl);

    // match right column
    gst = new GST(text2);
    gst.setPreprocessingAlgorithm(new EEBOPreprocessing());
    gst.match(text1);
   
    int last2 = 0;
    for(GSTTile tile : gst.getTiles()){
      // for left column
View Full Code Here

Examples of org.tei.comparator.preprocessing.EEBOPreprocessing

   
    String sourceText = docContainer.getElementAsStringFor(sourceId, DocumentContainer.MASTER);
    String derivedText = docContainer.getElementAsStringFor(derivedId, DocumentContainer.DERIVED);
 
    String text = new XMLHighlighter(new EEBOPreprocessing()).produceHighlightedText(sourceText, derivedText).trim();

    text = text.substring( text.indexOf('>') + 1, text.lastIndexOf('<') - 1);
   
    return text;
  }
View Full Code Here

Examples of org.tei.comparator.preprocessing.EEBOPreprocessing

  }

  private ShingleCloud getShingleCloud1(int type) {
    if(null == shingleCloud1){
      Document derived = DocumentContainer.getInstance().getDerived();
      shingleCloud1 = new TEIComparatorShingleCloud(derived, new EEBOPreprocessing(), 3, 5, 10 );
      shingleCloud1.setCombineMatchesInGroups(true);
    }
   

    if(type == TYPE_NORMAL){
View Full Code Here

Examples of org.tei.comparator.preprocessing.EEBOPreprocessing

 

  private ShingleCloud getShingleCloud2(int type) {
    if(null == shingleCloud2){
      Document derived = DocumentContainer.getInstance().getDerived();
      shingleCloud2 = new TEIComparatorShingleCloud(derived, new EEBOPreprocessing(), 3, 5, 10 );
      shingleCloud2.setCombineMatchesInGroups(true);
    }

    if(type == TYPE_NORMAL){
      shingleCloud2.setMinimumNumberOfOnesInMatch(5);
View Full Code Here

Examples of org.tei.comparator.preprocessing.EEBOPreprocessing

    List<TCLink> links = DBManager.getInstance().findMatchesFor(id);
   
    // set highligted text and determine, whether a proposal is already a match
    for(MatchProposal m : matches){
      // get hihglighted version of the text
      String highlighted = new XMLHighlighter(new EEBOPreprocessing()).produceHighlightedText(m.getText(), needle);
      m.setText(highlighted);
     
      //
      for(TCLink l : links)
        if(m.getId().equals(l.getCurrentDerivedId()))
View Full Code Here

Examples of org.tei.comparator.preprocessing.EEBOPreprocessing

    DocumentContainer docContainer = DocumentContainer.getInstance();
    String original = docContainer.getElementAsStringFor(id, DocumentContainer.MASTER);
   
    for(TCLink link : matches){
      String match = docContainer.getElementAsStringFor(link.getCurrentDerivedId(),DocumentContainer.DERIVED);
      String highlighted = new XMLHighlighter(new EEBOPreprocessing()).produceHighlightedText(match, original);
      List<TCNote> notes = DBManager.getInstance().getNotesFor(TCNote.TYPE_PARAGRAPH, link.getCurrentDerivedId());
      List<TCNote> linkNotes = DBManager.getInstance().getNotesFor(TCNote.TYPE_LINK, link.getCurrentDerivedId());
      notes.addAll(linkNotes);
      foundMatches.add(new Match(highlighted, link, notes));
    }
View Full Code Here

Examples of org.tei.comparator.preprocessing.EEBOPreprocessing

    // do the actual comparison
    Configuration config = new Configuration();
    config.setSourceFile(source);
    config.setTargetFile(derived);
    config.setOutputFile(output);
    config.setPreprocessingAlgorithm(new EEBOPreprocessing());
    config.setCombineMatchesInGroups(true);
   
    TEIComparator comp = new TEIComparator(config);
   
    System.out.println("Start comparison");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.