powered by
Return the subtitle index by specific keyword
srt.search(srt, key_word)
vector. The srt file read by srt.read.
srt.read
character. The key word want to be searched in subtitles.
# NOT RUN { srt_path <- system.file("extdata", "movie.srt", package="SRTtools") srt <- srt.read(srt_path, encoding = 'utf-8') srt.search(srt, key_word = "captain") # }
Run the code above in your browser using DataLab