de.tudarmstadt.ukp.jwktl.parser.ru.wikokit.base.wikipedia.text
Class ReferenceParser

java.lang.Object
  extended by de.tudarmstadt.ukp.jwktl.parser.ru.wikokit.base.wikipedia.text.ReferenceParser

public class ReferenceParser
extends Object

Parser of wiki references <ref>...</ref>


Constructor Summary
ReferenceParser()
           
 
Method Summary
static StringBuffer expandMoveToEndOfText(StringBuffer text)
          Expands texts of the refence, and adds it to the end of text.
static StringBuffer removeReferences(StringBuffer text)
          Removes refences from the text.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReferenceParser

public ReferenceParser()
Method Detail

expandMoveToEndOfText

public static StringBuffer expandMoveToEndOfText(StringBuffer text)
Expands texts of the refence, and adds it to the end of text. If the reference contains a template, e.g. <ref>{{cite book |..</ref> then the whole reference will be deleted.


removeReferences

public static StringBuffer removeReferences(StringBuffer text)
Removes refences from the text.



Copyright © 2011-2013 Ubiquitous Knowledge Processing (UKP) Lab. All Rights Reserved.