Что ни говори, а инфраструктура под недружественные интеллекты очень дружественная, и для тех, кому машина нужна не под капотом возиться, а ехать, Хадли делает классные продукты.
Его {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)
"He has to start being more proactive and to find a real solution to this situation, not stay in standby without interfering. It's a very irresponsible position from the owner of Telegram," she said. He adds: "Telegram has become my primary news source." In the past, it was noticed that through bulk SMSes, investors were induced to invest in or purchase the stocks of certain listed companies. The channel appears to be part of the broader information war that has developed following Russia's invasion of Ukraine. The Kremlin has paid Russian TikTok influencers to push propaganda, according to a Vice News investigation, while ProPublica found that fake Russian fact check videos had been viewed over a million times on Telegram. At the start of 2018, the company attempted to launch an Initial Coin Offering (ICO) which would enable it to enable payments (and earn the cash that comes from doing so). The initial signals were promising, especially given Telegram’s user base is already fairly crypto-savvy. It raised an initial tranche of cash – worth more than a billion dollars – to help develop the coin before opening sales to the public. Unfortunately, third-party sales of coins bought in those initial fundraising rounds raised the ire of the SEC, which brought the hammer down on the whole operation. In 2020, officials ordered Telegram to pay a fine of $18.5 million and hand back much of the cash that it had raised.
from jp