# Control token a pharse in list keyphrase using Text2Text

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcontrol-token-a-pharse-in-list-keyphrase-using-text2text%2F24540%3E%5C
**Category:** 🤗Transformers\
**Created:** [October 17, 2022, 3:55am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcontrol-token-a-pharse-in-list-keyphrase-using-text2text%2F24540 "2022-10-17T03:55:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![batman9x](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/batman9x/32/12093_2.png) [@batman9x](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fbatman9x)%5C
**Post date:** [October 17, 2022, 3:55am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcontrol-token-a-pharse-in-list-keyphrase-using-text2text%2F24540%2F1 "2022-10-17T03:55:36Z")

</div>

Hi everyone !  
When I use model end2end model as (T5, MBart,…) for task (keyphrase abstractiion) after I use model.generate(…) to gen list keypharse separated by semi-colon  
Examples: _list\_keypharse:_ **language model;keyphrase generation;new pre-training objective;pre-training setup;**

- I only can control max\_length of list\_keypharse not control max\_length of a keypharse(examples:new pre-training objective ( i want 2 token not 3 token)) in list\_keypharse

> How I can control and handle problems above? Thanks u everyoneThis text will be hidden
