# textcat.model-annotate don't read from stdin

**URL:** https://support.prodi.gy/t/textcat-model-annotate-dont-read-from-stdin/6905
**Category:** Uncategorized
**Tags:** solved, usage, textcat
**Created:** [November 18, 2023, 12:58pm UTC](https://support.prodi.gy/t/textcat-model-annotate-dont-read-from-stdin/6905 "2023-11-18T12:58:57Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![info2000](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/info2000/32/2190_2.png) [@info2000](https://support.prodi.gy/u/info2000)
#### Post date: [November 18, 2023, 12:58pm UTC](https://support.prodi.gy/t/textcat-model-annotate-dont-read-from-stdin/6905/1 "2023-11-18T12:58:57Z")

</div>

I'm reading from a directoy with text files and convert into jsonl stdin output, like here

when I use it in textcat.model-annotate, recipe doesn't read the stdin

```python
prodigy load.files data/ctx_files/es/ -F recipes/textFilesAnnotation.py | prodigy textcat.model-annotate ES_Tier3_modelAnotado data/model_best/ - spacy_Production -lo jsonl --threshold 0.2

```

same if I read a jsonl file

```python
cat data/ctx_files/es.jsonl | prodigy textcat.model-annotate ES_Tier3_modelAnotado data/model_best/ - spacy_Production -lo jsonl --threshold 0.2

```

and this command works:

```python
prodigy textcat.model-annotate ES_Tier3_modelAnotado data/model_best/ data/ctx_files/es.jsonl spacy_Production -lo jsonl --threshold 0.2

```

what I'm doing wrong?  
Thanks

---

<div class="post-metadata">

### Author: ![koaning](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/koaning/32/230_2.png) [@koaning](https://support.prodi.gy/u/koaning)
#### Post date: [November 21, 2023, 1:20pm UTC](https://support.prodi.gy/t/textcat-model-annotate-dont-read-from-stdin/6905/2 "2023-11-21T13:20:30Z")

</div>

Hi there!

I just checked on our main branch and am able to confirm that this is a bug that's introduced on our end. I'm working on a fix, but hopefully in the meantime you can stream into a file as a remedy for now.

Out of curiosity, is there a reason why you prefer to stream instead of using a file directly?

---

<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: [December 15, 2023, 2:40pm UTC](https://support.prodi.gy/t/textcat-model-annotate-dont-read-from-stdin/6905/3 "2023-12-15T14:40:42Z")

</div>

hi @info2000,

Just a heads up, that we patched this issue in [v1.14.11](https://prodi.gy/docs/changelog#v1.14.11). Thanks again for reporting!
