# Summarization Evalutor Example

**URL:** <https://discuss.huggingface.co/t/summarization-evalutor-example/44231>\
**Category:** 🤗Transformers\
**Created:** [June 22, 2023, 9:55pm UTC](https://discuss.huggingface.co/t/summarization-evalutor-example/44231 "2023-06-22T21:55:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abdelkareem](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/abdelkareem/32/30422_2.png) [@Abdelkareem](https://discuss.huggingface.co/u/Abdelkareem)\
**Post date:** [June 22, 2023, 9:55pm UTC](https://discuss.huggingface.co/t/summarization-evalutor-example/44231/1 "2023-06-22T21:55:56Z")

</div>

Can someone give me an example into using summarizationEvalutor into my code  
I have a dataset that contains the text and summary and  
have the following model  
from transformers import BertTokenizer, AutoModelForSeq2SeqLM, pipeline  
from arabert.preprocess import ArabertPreprocessor

model\_name=“malmarjeh/mbert2mbert-arabic-text-summarization”  
preprocessor = ArabertPreprocessor(model\_name=“”)

tokenizer = BertTokenizer.from\_pretrained(model\_name)  
model = AutoModelForSeq2SeqLM.from\_pretrained(model\_name)  
pipeline = pipeline(“text2text-generation”,model=model,tokenizer=tokenizer)

text = "السلام عليكم كيف الحال اليوم "  
text = preprocessor.preprocess(text)  
How to compute rouge1 in all my data ! and thanks in advance!
