Skip to content
This repository has been archived by the owner on Dec 25, 2023. It is now read-only.

Laboratory work #4, Elena Ermak - 22FPL1 #176

Closed
wants to merge 147 commits into from

Conversation

ermakelena
Copy link

No description provided.

@@ -22,6 +22,7 @@
# race conditions + -
# number of checks (few/many) +/- -/+


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

revert

@@ -18,13 +18,29 @@ def main() -> None:
if not(isinstance(encoded, tuple) and encoded):
return

<<<<<<< HEAD
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be reverted!


tokens = []
for token in text.lower().split():
if token[-1] in "?!.":
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"?!." to a variable

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done


encoded_generated_text = self._word_processor.encode(generated_text)
if not encoded_generated_text:
raise ValueError
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

message

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@vitazaytseva
Copy link

Well done! Good job!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants