|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.nlp.trees.international.pennchinese.RadicalMap
public class RadicalMap
A way to determine the primary (or "semantic") radical of a Chinese character or get the set of characters with a given semantic radical. The information was extracted from the Unihan database with a script and then converted into the string format below.
Constructor Summary | |
---|---|
RadicalMap()
|
Method Summary | |
---|---|
static Set |
getChars(char ch)
What are the Characters with this primary radical? |
static char |
getRadical(char ch)
What is the primary radical of this char? |
static void |
main(String[] args)
The main function reads a list of characters and outputs the list with corresponding radicals. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RadicalMap()
Method Detail |
---|
public static char getRadical(char ch)
ch
- a Chinese character
public static Set getChars(char ch)
ch
- a Chinese character, interpreted as a radical
public static void main(String[] args) throws IOException
args
-
IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |