Esempio n. 1
0
def test_matchloader_forall():
    matches_name = sys.argv[1]

    for id in range(1, 41):
        m = MatchLoader(id, matches_name) 
#        print '{0}'.format(len(m.get_release_ids()))
#        print '{0}'.format(len(m.get_article_ids()))
#        print '{0}'.format(m.count_rel_art_pairs())
        print '{0}'.format(m.count_matching_blocks())
Esempio n. 2
0
def test_matchloader():
    company_id = int(sys.argv[1])
    matches_name = sys.argv[2]
    m = MatchLoader(company_id, matches_name) 
    print 'Testing MatchLoader'
    print 'company-id: {0}'.format(company_id)
    print 'releases: {0}'.format(len(m.get_release_ids()))
    print 'articles: {0}'.format(len(m.get_article_ids()))
    print 'pairs: {0}'.format(m.count_rel_art_pairs())
    print 'blocks: {0}'.format(m.count_matching_blocks())