from nlp30 import get_morph
from itertools import chain
morph = get_morph()
morph_flat = list(chain.from_iterable(morph))
ans = []
for i, m in enumerate(morph_flat):
    if m['surface'] == 'の' and m['pos'] == '助詞' and m['pos1'] == '連体化':
        ans.append(morph_flat[i - 1]['surface'] + m['surface'] + morph_flat
            [i + 1]['surface'])
print(ans)

ea79c81b719b001ae018773341e63e7577819b08
<mask token>

<mask token>
for i, m in enumerate(morph_flat):
    if m['surface'] == 'の' and m['pos'] == '助詞' and m['pos1'] == '連体化':
        ans.append(morph_flat[i - 1]['surface'] + m['surface'] + morph_flat
            [i + 1]['surface'])
print(ans)

<mask token>
morph = get_morph()
morph_flat = list(chain.from_iterable(morph))
ans = []
for i, m in enumerate(morph_flat):
    if m['surface'] == 'の' and m['pos'] == '助詞' and m['pos1'] == '連体化':
        ans.append(morph_flat[i - 1]['surface'] + m['surface'] + morph_flat
            [i + 1]['surface'])
print(ans)

from nlp30 import get_morph
from itertools import chain
morph = get_morph()
morph_flat = list(chain.from_iterable(morph))
ans = []
for i, m in enumerate(morph_flat):
    if m['surface'] == 'の' and m['pos'] == '助詞' and m['pos1'] == '連体化':
        ans.append(morph_flat[i - 1]['surface'] + m['surface'] + morph_flat
            [i + 1]['surface'])
print(ans)
