File size: 451 Bytes
207cddf
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
from idiomify.fetchers import fetch_epie


def main():
    idioms = set([
        idiom
        for idiom, _, _ in fetch_epie()
    ])
    contexts = [
        context
        for _, _, context in fetch_epie()
    ]
    print("Total number of idioms:", len(idioms))
    # This should learn... this - what I need for now is building a datamodule out of this
    print("Total number of contexts:", len(contexts))


if __name__ == '__main__':
    main()