Skip navigation links
Stanford CoreNLP API
edu.stanford.nlp.process

Class StripTagsProcessor<L,F>

    • Field Detail

      • blockTags

        public static final Set<String> blockTags
        Block-level HTML tags that are rendered with surrounding line breaks.
    • Constructor Detail

      • StripTagsProcessor

        public StripTagsProcessor()
        Constructs a new StripTagsProcessor that doesn't mark line breaks.
      • StripTagsProcessor

        public StripTagsProcessor(boolean markLineBreaks)
        Constructs a new StripTagProcessor that marks line breaks as specified.
    • Method Detail

      • getMarkLineBreaks

        public boolean getMarkLineBreaks()
        Returns whether the output of the processor will contain newline words ("\n") at the end of block-level tags.
        Returns:
        Whether the output of the processor will contain newline words ("\n") at the end of block-level tags.
      • setMarkLineBreaks

        public void setMarkLineBreaks(boolean markLineBreaks)
        Sets whether the output of the processor will contain newline words ("\n") at the end of block-level tags.
      • process

        public List<Word> process(List<? extends Word> in)
        Returns a new Document with the same meta-data as in, and the same words except tags are stripped.
      • main

        public static void main(String[] args)
        For internal debugging purposes only.

© 2002-2013 Stanford NLP Group