Check if the corpus config contains a segment definition. If not, take the token
layer.