Exemplo n.º 1
0
def collect_entry_frequencies():
    from processors.frequencycollector import FrequencyCollector
    from processors.frequencyindexer import index_frequency_files
    fc = FrequencyCollector(out_dir=frequencyconfig.FREQUENCY_DIR,
                            terse=True, include_subentries=False)
    fc.process()

    index_frequency_files(
        frequencyconfig.FREQUENCY_DIR,
        os.path.join(frequencyconfig.FREQUENCY_DIR, 'index.xml')
    )
Exemplo n.º 2
0
def collect_all_frequencies():
    from processors.frequencycollector import FrequencyCollector
    fc = FrequencyCollector(out_dir=frequencyconfig.FULL_FREQUENCY_DIR,
                            terse=True, include_subentries=True)
    fc.process()