def main(): fin = open(sys.argv[1], "r") all_sent_list = chunk_senbei.make_chunk_class(fin) fin.close() verb2particle = make_verb2particle(all_sent_list) for verb, particle in verb2particle.items(): print verb + "\t" + " ".join(sorted(particle))
def main(): fin = open(sys.argv[1], "r") all_sent_list = chunk_senbei.make_chunk_class(fin) fin.close() kakariuke_list = make_kakariuke_list(all_sent_list) for kakariuke in kakariuke_list: print kakariuke[0] + "\t" + kakariuke[1]
def main(): fin = open(sys.argv[1], "r") all_sent_list = chunk_senbei.make_chunk_class(fin) fin.close() kakariuke_pass_all_sent = make_kakariuke_pass_all_sent(all_sent_list) passes_noun_to_noun = make_passes_noun_to_noun(kakariuke_pass_all_sent) for a_pass_noun_to_noun in passes_noun_to_noun: print a_pass_noun_to_noun
def main(): fin = open(sys.argv[1], "r") all_sent_list = chunk_senbei.make_chunk_class(fin) fin.close() kakariuke_pass_all_sent = make_kakariuke_pass_all_sent(all_sent_list) for kakariuke_pass_one_sent in kakariuke_pass_all_sent: for kakariuke_pass in kakariuke_pass_one_sent: print " -> ".join(kakariuke_pass) print ""
def main(): fin = open(sys.argv[1], "r") all_sent_list = chunk_senbei.make_chunk_class(fin) fin.close() verb2perticles, verb2caseframe = make_verb2perticles_verb2caseframe(all_sent_list) for verb, particles in verb2perticles.items(): print verb + "\t" + " ".join(sorted(particles)), print "\t", particles_set = set(particles) for particle in sorted(particles_set): print " ".join(sorted(verb2caseframe[verb + " " + particle])), print ""
def main(): fin = open(sys.argv[1], "r") all_sent_list = chunk_senbei.make_chunk_class(fin) fin.close() kakariuke_list = make_kakariuke_list(all_sent_list) print_dot_file(kakariuke_list)