-
Notifications
You must be signed in to change notification settings - Fork 48
Laboratory work #4, Elena Ermak - 22FPL1 #176
Conversation
…d detect_language
…d detect_language
seminars/practice_9_exceptions.py
Outdated
@@ -22,6 +22,7 @@ | |||
# race conditions + - | |||
# number of checks (few/many) +/- -/+ | |||
|
|||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
revert
lab_3_generate_by_ngrams/start.py
Outdated
@@ -18,13 +18,29 @@ def main() -> None: | |||
if not(isinstance(encoded, tuple) and encoded): | |||
return | |||
|
|||
<<<<<<< HEAD |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be reverted!
lab_4_fill_words_by_ngrams/main.py
Outdated
|
||
tokens = [] | ||
for token in text.lower().split(): | ||
if token[-1] in "?!.": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"?!."
to a variable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
lab_4_fill_words_by_ngrams/main.py
Outdated
|
||
encoded_generated_text = self._word_processor.encode(generated_text) | ||
if not encoded_generated_text: | ||
raise ValueError |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
message
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Well done! Good job! |
No description provided.