# Transformer for very big text

**URL:** <https://discuss.huggingface.co/t/transformer-for-very-big-text/9864>\
**Category:** 🤗Transformers\
**Created:** [September 9, 2021, 6:57pm UTC](https://discuss.huggingface.co/t/transformer-for-very-big-text/9864 "2021-09-09T18:57:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Muhammad4hmed](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/muhammad4hmed/32/2682_2.png) [@Muhammad4hmed](https://discuss.huggingface.co/u/Muhammad4hmed)\
**Post date:** [September 9, 2021, 6:57pm UTC](https://discuss.huggingface.co/t/transformer-for-very-big-text/9864/1 "2021-09-09T18:57:43Z")

</div>

So I have some ~1200 data consisting of assembly language which has on average of ~15K words per line which is indeed very big data and I want to classify them into two classes (they are labelled)

Any method I can achieve my goal? as the transformers max length limit is mostly 256 or 512.

Thanks.

---

<div class="post-metadata">

**Author:** ![theTechie](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/thetechie/32/4681_2.png) [@theTechie](https://discuss.huggingface.co/u/theTechie)\
**Post date:** [May 6, 2022, 11:58am UTC](https://discuss.huggingface.co/t/transformer-for-very-big-text/9864/2 "2022-05-06T11:58:14Z")

</div>

[Longformer](https://huggingface.co/docs/transformers/model_doc/longformer) might help you
