Massive restructuring. Linguistic processing needs a LOT of work.

Signed-off-by: Xiaomao Chen <xiaomao5@live.com>