ner.print-dataset does not show colorfull annotation

When I used this command it does not work

>python -m prodigy ner.print-dataset an_ner_date_01 | less -r
'less' is not recognized as an internal or external command,
operable program or batch file.

did I make a mistake?

when I write so

python -m prodigy ner.print-dataset an_ner_date_01 

I only have access to raw dataset without annotation

could you let me know what is the problem?

Are you on Windows? I think the problem in the first command is that your shell doesn't have the less command. It allows you to go through large output page by page, but it's not strictly needed – but if you are on Windows, you should be able to use more instead. So: | more -r.

What terminal are you using? The colors are only shown if your terminal supports colors.

1 Like

I tried also

python -m prodigy ner.print-dataset an_ner_ast_01 | more -r

it does not work and it says

OSError: [Errno 22] Invalid argument
Exception ignored in: <colorama.ansitowin32.StreamWrapper object at 0x000001E544965080>
OSError: [Errno 22] Invalid argument

I am using anaconda prompt. should I try other terminal?