edu.washington.cs.knowitall.extractor.mapper
Class DeUnicoder
java.lang.Object
edu.washington.cs.knowitall.extractor.mapper.Mapper<T>
edu.washington.cs.knowitall.extractor.mapper.IndependentMapper<String>
edu.washington.cs.knowitall.extractor.mapper.DeUnicoder
public class DeUnicoder
- extends IndependentMapper<String>
Converts some characters from unicode to ascii (such as directional
quotations)
- Author:
- schmmd
|
Constructor Summary |
DeUnicoder()
Constructs a new DeUnicoder object. |
|
Method Summary |
String |
doMap(String sent)
Remove strange characters. |
static void |
main(String[] args)
Applies the DeUnicoder mapper to each line in standard input
and prints the result. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DeUnicoder
public DeUnicoder()
- Constructs a new
DeUnicoder object.
doMap
public String doMap(String sent)
- Remove strange characters.
- Specified by:
doMap in class IndependentMapper<String>
main
public static void main(String[] args)
throws IOException
- Applies the
DeUnicoder mapper to each line in standard input
and prints the result.
- Parameters:
args -
- Throws:
IOException
Copyright © 2010-2012 University of Washington CSE. All Rights Reserved.