# relation is responding very slowly

**URL:** https://support.prodi.gy/t/relation-is-responding-very-slowly/4732
**Category:** Uncategorized
**Tags:** enhancement, relations
**Created:** [September 28, 2021, 6:57am UTC](https://support.prodi.gy/t/relation-is-responding-very-slowly/4732 "2021-09-28T06:57:24Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![ines](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/ines/32/3_2.png) [@ines](https://support.prodi.gy/u/ines)
#### Post date: [September 29, 2021, 9:52am UTC](https://support.prodi.gy/t/relation-is-responding-very-slowly/4732/2 "2021-09-29T09:52:03Z")

</div>

Hi and sorry about this – it's currently expected that the interface becomes less performant for very long documents with many tokens, and we're working on a rewrite that doesn't have this problem. I think what makes it additionally tricky in your case is that you just end up with more tokens overall, due to the way the characters are segmented.

As a workaround, one thing you can do is use patterns to disable all tokens that you know won't ever be part of a relation – of course, only if that's possible. Obvious candidates are punctuation, but you might be able to write other disable patterns based on part-of-speech tags etc.

> [@BenfengXu](#):
>
> I'm annotating on chinese text, so the text is not correctly tokenized and visulized as such. I tried load a spacy pipeline model (which is produced using spacy pipeline to\_disk, and can correctly tokenize my text),

Can you double-check that when you load your custom pipeline with the tokenizer in Python and process a text, the tokens are segmented correctly? If a `Doc` produced by the model shows the correct tokens, Prodigy should refelct this accordingly in all recipes that use the model for tokenization.

---

_[View the full topic](https://support.prodi.gy/t/relation-is-responding-very-slowly/4732)._
