Package org.languagetool.dev.wikipedia
Class SwebleWikipediaTextFilter
java.lang.Object
org.languagetool.dev.wikipedia.SwebleWikipediaTextFilter
- All Implemented Interfaces:
TextMapFilter
Convert Wikipedia syntax to HTML using Sweble.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidenableMapping(boolean enable) Set this tofalsefor better performance.Filter the given text, keeping a mapping from plain text to original markup positions.
-
Constructor Details
-
SwebleWikipediaTextFilter
public SwebleWikipediaTextFilter()
-
-
Method Details
-
filter
Description copied from interface:TextMapFilterFilter the given text, keeping a mapping from plain text to original markup positions. Note that the result's mapping may benullif mapping has been disabled for performance reasons.- Specified by:
filterin interfaceTextMapFilter
-
enableMapping
public void enableMapping(boolean enable) Set this tofalsefor better performance. The result offilter(String)will then have anullmapping.
-