# How to do relation annotation after using bert.mer.manual

**URL:** <https://support.prodi.gy/t/how-to-do-relation-annotation-after-using-bert-mer-manual/6612>\
**Category:** Uncategorized\
**Tags:** transformers, relations\
**Created:** [June 18, 2023, 7:35am UTC](https://support.prodi.gy/t/how-to-do-relation-annotation-after-using-bert-mer-manual/6612 "2023-06-18T07:35:53Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![ryanwesslen](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/ryanwesslen/32/2969_2.png) [@ryanwesslen](https://support.prodi.gy/u/ryanwesslen)\
**Post date:** [June 19, 2023, 1:57pm UTC](https://support.prodi.gy/t/how-to-do-relation-annotation-after-using-bert-mer-manual/6612/2 "2023-06-19T13:57:52Z")

</div>

hi @Jiachen!

Thanks for your question and welcome to the Prodigy community 👋

Have you seen this post?

> [@Tokenization compatibility issues in rel.manual](https://support.prodi.gy/t/tokenization-compatibility-issues-in-rel-manual/3241/3):
>
> If you're happy to just annotate the BPE tokens and relations between them, and don't care so much about aligning the tokens to spaCy's linguistic tokenization, you could also just load in pre-tokenized text using your tokenizer. Here's an example using a word piece tokenizer for NER annotation that aligns with a transformer model: [https://prodi.gy/docs/named-entity-recognition#transformers-tokenizers](https://prodi.gy/docs/named-entity-recognition#transformers-tokenizers) You don't have to do it within the recipe – you could also use the logic as a preprocessing st…

The idea is to pass in the pre-tokenized text and avoiding spaCy's tokenizer. You'll need to create a custom recipe as `rel.manual` will assume you're using a spaCy tokenizer -- but as the post mentions, you can use the `bert.ner.manual` as an example of how to use the BPE tokenizer. Also, you can find the `rel.manual` recipe (for reference) in your installed Prodigy library. Run `prodigy stats`, find the `Location:` path (aka where Prodigy is installed), and then look for `recipes/rel.py` script.

Hope this helps!

---

_[View the full topic](https://support.prodi.gy/t/how-to-do-relation-annotation-after-using-bert-mer-manual/6612)._
