some jave code of term dependency experiment