Text this: Hierarchical Optimization for Fast Resource Allocation