NetaData is a command-line application written in Go that processes YouTube-style transcription files, removing:
- Time markers.
- HTML-like tags (e.g.,
<c>). - Repeated consecutive lines.
- Unnecessary line breaks, creating a single continuous text output.
The application is designed to simplify transcript files for easy readability and further analysis.
- Time Marker Removal: Eliminates timestamped text lines.
- Tag Cleanup: Strips out unwanted tags like
<c>. - Duplicate Line Filtering: Avoids redundant consecutive lines.
- Text Flattening: Produces a single continuous line of text without line breaks.
netadata_finish.mp4
-
Go 1.21 or later installed (for building manually).
-
You can also install NetaData in any Debian based Linux distribution.
-
Clone the repository:
git clone https://github.com/yourusername/netadata.git cd netadata -
Build the application:
go build -o netadata main.go
-
Run the application:
./netadata <input_file>
- Build the
.debpackage:mkdir -p mypackage/usr/local/bin mkdir -p mypackage/DEBIAN cp netadata mypackage/usr/local/bin/ echo "Package: netadata\nVersion: 1.0\nSection: utils\nPriority: optional\nArchitecture: amd64\nMaintainer: Your Name <your.email@example.com>\nDescription: A tool to clean transcription files." > mypackage/DEBIAN/control dpkg-deb --build mypackage
You can also download directly the .deb file here:
wget https://github.com/Car85/NetaData/blob/main/netadata.deb
-
Install the package:
sudo dpkg -i mypackage.deb
-
Run the application:
netadata <input_file>
./netadata <input_file><input_file>: Path to the transcription file (e.g.,transcript.txt).- The output will be a cleaned file named
<input_file>_cleaned.txtin the same directory.
Input file (transcript.txt):
00:00:01.210 --> 00:00:04.030 align:start position:0%
[Music]
hello<00:00:04.560><c> and</c><00:00:04.680><c> welcome</c>
hello and welcome
hello and welcome
Command:
./netadata transcript.txtOutput file (transcript_cleaned.txt):
[Music] hello and welcome
This project is licensed under the GPL-3.0 License - see the LICENSE file for details.
Feel free to open issues or submit pull requests for enhancements and fixes. Contributions are welcome!