Python Forum
Removing timestamps from transcriptions
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Removing timestamps from transcriptions
#3
(Dec-05-2018, 03:17 AM)jehoshua Wrote: Is it simply a matter of a search and replace ? Like search for either numeric or a colon, and replace with a null ? Wanted to use python to parse through a number of files; there are about 20 of these .txt files and some are 130K. So doing it manually is out of the question.

Possibly search for a space and numeric to indicate the start of where it needs replacing, and more often than not we have .
You could do it with regex and then just replace all double spaces with a single space. OR you can make a function to find all colons, and then remove 3 characters before, and 2 characters afterwords.
Recommended Tutorials:
Reply


Messages In This Thread
RE: Removing timestamps from transcriptions - by metulburr - Dec-05-2018, 12:32 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to find tags using specific text (timestamps) in a url? q988988 1 1,442 Mar-08-2022, 08:09 AM
Last Post: buran
  Speech Recognition with timestamps DeanAseraf1 3 6,765 Jun-27-2021, 06:58 PM
Last Post: gh_ad
Bug Help on Flagging Timestamps Daring_T 2 1,961 Oct-28-2020, 08:11 PM
Last Post: Daring_T
  How to compare timestamps in python asad 2 9,198 Oct-24-2018, 03:56 AM
Last Post: asad

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020