Use defaultdict to store various data elements in feature