3 ms·
The classification format is a bit confusing to me. Given a file that looks like this: Help - how to I format blocks of code/bash output in this editor ? `fa
by misiti3780 10y ago
The classification format is a bit confusing to me. Given a
file that looks like this:
Help - how to I format blocks of code/bash output in this editor ?
`fastText josephmisiti$ cat train.tsv | head -n 2
1 1 A series of escapades demonstrating the adage that what is good for the goose is also good for the gander , some of which occasionally amuses but none of which amounts to much of a story . 1
2 1 A series of escapades demonstrating the adage that what is good for the goose 2
Are they saying to reformat it like this
cat train.tsv | head -n 10 | awk -F '\t' '{print "__label__"$4 "\t" $3 }'`
giving me
`fastText josephmisiti$ cat train.tsv | head -n 10 | awk -F '\t' '{print "__label__"$4 "\t" $3 }'
__label__1 A series of escapades demonstrating the adage that what is good for the goose is also good for the gander , some of which occasionally amuses but none of which amounts to much of a story .
__label__2 A series of escapades demonstrating the adage that what is good for the goose
__label__2 A series
__label__2 A
__label__2 series
__label__2 of escapades demonstrating the adage that what is good for the goose
__label__2 of
__label__2 escapades demonstrating the adage that what is good for the goose
__label__2 escapades
__label__2 demonstrating the adage that what is good for the goose`
- throwanem 10y agoHN doesn't support Markdown. Indent each line of a block by four spaces for fixed-width markup.