# Summarization Evalutor Example

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fsummarization-evalutor-example%2F44231%3E%5C
**Category:** 🤗Transformers\
**Created:** [June 22, 2023, 9:55pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fsummarization-evalutor-example%2F44231 "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](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FAbdelkareem)%5C
**Post date:** [June 22, 2023, 9:55pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fsummarization-evalutor-example%2F44231%2F1 "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!
