This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// bindary search : sem 2 | |
// | |
#include <iostream> | |
#include <vector> | |
#include <numeric> | |
int BinarySearch(const std::vector<int> &values, size_t startIndex, size_t endIndex, const int& value) { | |
size_t midIndex = (startIndex + endIndex) / 2; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// structures.cpp : sem 2 | |
// | |
#include <iostream> | |
#include <string> | |
#include <algorithm> | |
#include <vector> | |
// �������� ��������� 1 | |
struct Student { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from transformers import AutoTokenizer | |
from razdel import sentenize | |
from typing import List | |
def sent_split(sent): | |
return sent.split() | |
def separate_big_sent_by_spaces(whole_text: str, tokenizer, limit_length: int = 512, sent_split=sent_split) -> List[str]: |