Что ни говори, а инфраструктура под недружественные интеллекты очень дружественная, и для тех, кому машина нужна не под капотом возиться, а ехать, Хадли делает классные продукты.
Его {ellmer} позволяет без особых усилий извлекать структурированные данные из изображений. Что это такое — решайте сами; в моем случае — распознанный текст и перевод. OpenAI: распознавание на 5, перевод на русский на 3+.
Записывайте: перечислить файлы, придумать тип данных для выхода, запустить чат. На выходе таблица: в одном столбце текст, в другом — перевод.
library(ellmer) library(tidyverse)
# придумываем, какие нужны столбцы
type_text <- type_object( "Latin text and Russian translation of the text. Occasionally, you might see some Ancient Greek.", text = type_string("Latin text"), translation = type_string("Russian translation") )
# список изображений my_images <- list.files(pattern = "png")
# рабочая функция для purrr process_image <- function(image_path) { response <- chat$extract_data( content_image_file(image_path), type = type_text ) return(response) }
# еще спроси, а где здесь вожжи all_responses <- map_dfr(my_images, process_image)
Что ни говори, а инфраструктура под недружественные интеллекты очень дружественная, и для тех, кому машина нужна не под капотом возиться, а ехать, Хадли делает классные продукты.
Его {ellmer} позволяет без особых усилий извлекать структурированные данные из изображений. Что это такое — решайте сами; в моем случае — распознанный текст и перевод. OpenAI: распознавание на 5, перевод на русский на 3+.
Записывайте: перечислить файлы, придумать тип данных для выхода, запустить чат. На выходе таблица: в одном столбце текст, в другом — перевод.
library(ellmer) library(tidyverse)
# придумываем, какие нужны столбцы
type_text <- type_object( "Latin text and Russian translation of the text. Occasionally, you might see some Ancient Greek.", text = type_string("Latin text"), translation = type_string("Russian translation") )
# список изображений my_images <- list.files(pattern = "png")
# рабочая функция для purrr process_image <- function(image_path) { response <- chat$extract_data( content_image_file(image_path), type = type_text ) return(response) }
# еще спроси, а где здесь вожжи all_responses <- map_dfr(my_images, process_image)
Telegram has become more interventionist over time, and has steadily increased its efforts to shut down these accounts. But this has also meant that the company has also engaged with lawmakers more generally, although it maintains that it doesn’t do so willingly. For instance, in September 2021, Telegram reportedly blocked a chat bot in support of (Putin critic) Alexei Navalny during Russia’s most recent parliamentary elections. Pavel Durov was quoted at the time saying that the company was obliged to follow a “legitimate” law of the land. He added that as Apple and Google both follow the law, to violate it would give both platforms a reason to boot the messenger from its stores. Now safely in France with his spouse and three of his children, Kliuchnikov scrolls through Telegram to learn about the devastation happening in his home country. For tech stocks, “the main thing is yields,” Essaye said. After fleeing Russia, the brothers founded Telegram as a way to communicate outside the Kremlin's orbit. They now run it from Dubai, and Pavel Durov says it has more than 500 million monthly active users. "And that set off kind of a battle royale for control of the platform that Durov eventually lost," said Nathalie Maréchal of the Washington advocacy group Ranking Digital Rights.
from id