Segment-Based Attention Masking for GPTs