Esempio n. 1
0
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))
Esempio n. 2
0
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]
Esempio n. 3
0
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))
Esempio n. 4
0
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]
Esempio n. 5
0
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
Esempio n. 6
0
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
Esempio n. 7
0
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 ""
Esempio n. 8
0
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 ""
Esempio n. 9
0
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)
Esempio n. 10
0
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)