Exemple #1
0
def main():
    sentences = read_and_make_chunks()
    dots = []
    for chunks in sentences:
        dots.append(make_dot(chunks))

    for dot in dots:
        print(dot)
Exemple #2
0
def main():
    sentences = read_and_make_chunks()
    for chunks in sentences:
        for chunk in chunks:
            dst = chunk.dst
            if dst != -1 and '名詞' in chunk and '動詞' in chunks[dst]:
                src_phrase = make_phrase_exclude_symbols(chunk)
                dst_phrase = make_phrase_exclude_symbols(chunks[dst])
                print("{}\t{}".format(src_phrase, dst_phrase))
Exemple #3
0
def main():
    sentences = read_and_make_chunks()
    for chunks in sentences:
        for chunk in chunks:
            src_phrase = make_phrase_exclude_symbols(chunk.morphs)
            if chunk.dst != -1:
                dst_phrase = make_phrase_exclude_symbols(chunks[chunk.dst].morphs)
            else:
                dst_phrase = ''
            print('{}\t{}'.format(src_phrase, dst_phrase))
Exemple #4
0
def main():
    sentences = read_and_make_chunks()
    for chunks in sentences:
        for chunk in chunks:
            src_phrase = make_phrase_exclude_symbols(chunk.morphs)
            if chunk.dst != -1:
                dst_phrase = make_phrase_exclude_symbols(
                    chunks[chunk.dst].morphs)
            else:
                dst_phrase = ''
            print('{}\t{}'.format(src_phrase, dst_phrase))
Exemple #5
0
def main():
    sentences = read_and_make_chunks()
    for sentence in sentences:
        case_patterns = extract_case_frames(sentence)
        if case_patterns:
            print('\n'.join(case_patterns))
Exemple #6
0
def main():
    sentences = read_and_make_chunks()
    for sentence in sentences:
        lvcs = extract_LVCs(sentence)
        if lvcs:
            print('\n'.join(lvcs))
Exemple #7
0
def main():
    sentences = read_and_make_chunks()
    for sentence in sentences:
        lvcs = extract_LVCs(sentence)
        if lvcs:
            print('\n'.join(lvcs))
Exemple #8
0
def main():
    sentences = read_and_make_chunks()
    for chunks in sentences:
        for chunk in chunks:
            print(chunk)
Exemple #9
0
def main():
    sentences = read_and_make_chunks()
    for sentence in sentences:
        case_patterns = extract_case_patterns(sentence)
        if case_patterns:
            print('\n'.join(case_patterns))