public static Map<String, EntryPack> createPacksSemKey(PolarityContext context)
{
Table<Semantics, PolarityKeys, GrammarEntries> table = HashBasedTable.create();
for(GrammarEntry entry : context.getEntries())
{
Semantics sem = entry.getSemantics();
PolarityKeys keys = context.getPolarity(entry);
if (!table.contains(sem, keys))
table.put(sem, keys, new GrammarEntries());
table.get(sem, keys).add(entry);
}