Skip to content

Commit

Permalink
fix: remove special charactesr
Browse files Browse the repository at this point in the history
  • Loading branch information
thewh1teagle committed Jun 22, 2024
1 parent fda51db commit ecfef42
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pages/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ export default function Home() {
setDstText(
resp
.map(([line, _score]) => {
line = line.replace('<unk>', '')
line = line.replace('<s>', '')
line = line.replace('</s>', '')
line = line.replace(/<unk>/g, '')
line = line.replace(/<s>/g, '')
line = line.replace(/<\/s>/g, '')
return line
})
.join('\n')
Expand Down

0 comments on commit ecfef42

Please sign in to comment.