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 booleanequals(Object obj)List<String>getSeparators()TaggetTag()inthashCode()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)StringtoString()-
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:
toStringin classDefaultHint
-
hashCode
public int hashCode()
- Overrides:
hashCodein classDefaultHint
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classDefaultHint
-
processOccurrences
public List<TagOccurrence> processOccurrences(BoxText boxText, List<TagOccurrence> occurrences)
Description copied from interface:PresentationHintApplies the hint to a list of occurences extracted from the given box text (postprocessing a list of occurences)- Specified by:
processOccurrencesin interfacePresentationHint- Overrides:
processOccurrencesin classDefaultHint- Parameters:
boxText- the source box textoccurrences- the current list of occurrences- Returns:
- the new list of occurrences
-
-