I've been reading the documentation about GPT2 Transformer Trained on WebText Data. I noticed that it can perform 2 tasks and one of then is FeatureExtraction.
lm = NetModel[{"GPT2 Transformer Trained on WebText Data", "Task" -> "FeatureExtraction"}]
However, there are no examples on how to use it for Feature Extraction. I will appreciate an example or hints on how to use it for this purpose.