nicuf

Untitled

Jun 29th, 2021 (edited)
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. googltrans does not fully translate all the html tags, whose content is writtent in English. So, as to fully translate all the html tags (you already work with), the py code must find only those tags that are writtent in English. Because all sentences must have at least 2 or 3 usually words.
  2.  
  3. See this print screen, all text has been translate, except one tag. The googletrans has skip that tag, it happened in several files.
  4.  
  5. https://snipboard.io/ReBhvg.jpg
  6.  
  7. So, the py code must find those usually english words from the tag, at least 3 words, and if it finds 3 english words in the same tag, to translate it (only that tag !)
  8.  
  9. These are the words that (at least 3 of them) can be found in any english sentences.
  10.  
  11. was, where, were, some, then, than, that, can, by, the, and, with, over, there, is, as, also, through, from, while, just, like, for, such, if, else, still, again, want, will, wish, make, made, well, have, had, has, it, be, do, say, others, go, know, see, think, look, give, use, find, tell, ask, work, seem, feel, try, leave, call, get, take, too, in, addition, to, could, who, he, she, because, of, your, yours, their, doesn't, are, an, these, this, those, but, at, whom, or, out, how, when, between, his, her, they, them, my, without, maybe, even, show, can't, must, couldn't, now, i'm, many, come, own, self, seen, it’s, we, any, other, coming, so, found, more, much, all, very, same, did, which, does, on
Add Comment
Please, Sign In to add comment