Package cz.vutbr.fit.layout.text.chunks
Class HintSeparator
- java.lang.Object
-
- cz.vutbr.fit.layout.text.chunks.DefaultHint
-
- cz.vutbr.fit.layout.text.chunks.HintSeparator
-
- All Implemented Interfaces:
PresentationHint
public class HintSeparator extends DefaultHint
This hint tries to improve the recall of the tag occurrence discovery by applying some regular separators.- Author:
- burgetr
-
-
Constructor Summary
Constructors Constructor Description HintSeparator(Tag tag, List<String> separators, float support)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
List<String>
getSeparators()
Tag
getTag()
int
hashCode()
List<TagOccurrence>
processOccurrences(BoxText boxText, List<TagOccurrence> occurrences)
Applies the hint to a list of occurences extracted from the given box text (postprocessing a list of occurences)String
toString()
-
Methods inherited from class cz.vutbr.fit.layout.text.chunks.DefaultHint
extractBoxes, getName, getSupport, impliesBlock, impliesInline, postprocessChunks, processChunks, setBlock, setInline
-
-
-
-
Method Detail
-
getTag
public Tag getTag()
-
toString
public String toString()
- Overrides:
toString
in classDefaultHint
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classDefaultHint
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classDefaultHint
-
processOccurrences
public List<TagOccurrence> processOccurrences(BoxText boxText, List<TagOccurrence> occurrences)
Description copied from interface:PresentationHint
Applies the hint to a list of occurences extracted from the given box text (postprocessing a list of occurences)- Specified by:
processOccurrences
in interfacePresentationHint
- Overrides:
processOccurrences
in classDefaultHint
- Parameters:
boxText
- the source box textoccurrences
- the current list of occurrences- Returns:
- the new list of occurrences
-
-