Package de.tud.kom.stringutils.preprocessing

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


    TableOfContentsEntry entry;
    if(! ArrayUtils.contains(elementsUsingFirstWords, node.getNodeName()))
      entry = new TableOfContentsEntry(node.getNodeName() + (node.getAttribute("type").equals("") ? "" : " (" + node.getAttribute("type") + ")"), Utils.getUniqueXMLID());
    else {
      String textContent = node.getTextContent();
      textContent = new WhiteSpaceRemovalPreprocessing().preprocessInput(textContent);
     
      String[] words = textContent.split(" ");
      if(words.length < numberOfFirstWords){
        textContent = (textContent.equals("") ? "[Empty Section]" : textContent);
        entry = new TableOfContentsEntry(textContent, Utils.getUniqueXMLID());
View Full Code Here

TOP

Related Classes of de.tud.kom.stringutils.preprocessing.WhiteSpaceRemovalPreprocessing

Copyright © 2018 www.massapicom. 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.