All Products
Search
Document Center

Platform For AI:LLM-Remove LaTeX Comment Lines (DLC)

Last Updated:Jun 21, 2026

Komponen LLM-Remove LaTeX Comment Lines (DLC) menghapus komentar yang berada di seluruh baris maupun di dalam baris dari teks berformat TeX. File data input OSS harus dalam format JSONL (contoh). Setiap baris dalam file JSONL merupakan objek JSON yang mandiri.

computing resources yang didukung

DLC

Algorithm

Komponen ini menggunakan ekspresi reguler berikut untuk mengidentifikasi komentar dalam teks berformat LaTeX:

Jenis komentar

Ekspresi reguler

Full-line comments

r'(?m)^%.*\n?'

Inline comments

r'[^\\]%.+$'

Komponen ini menemukan semua string yang sesuai dengan ekspresi reguler tersebut dan menggantinya dengan string kosong. Contoh berikut menunjukkan cara kerjanya.

Sebelum diproses

%%
%% This is file 'sample-sigconf.tex',
%% The first command in your LaTeX source must be the \documentclass command.
\documentclass[sigconf,review,anonymous]{acmart}

%% NOTE that a single column version is required for
%% submission and peer review. This can be done by changing
\input{math_commands.tex}
%% end of the preamble, start of the body of the document source.
\begin{document}

%% The "title" command has an optional parameter,
%% allowing the author to define a "short title" to be used in page headers.
\title{Hierarchical Cross Contrastive Learning of Visual Representations}

\author{Hesen Chen}

Setelah diproses

Dalam kotak dialog Current Field Value, bidang tersebut berisi kode sumber LaTeX yang telah dibersihkan, termasuk baris-baris berikut: \documentclass[sigconf,review,anonymous]{acmart}, \input{math_commands.tex}, \begin{document}, \title{Hierarchical Cross Contrastive Learning of Visual Representations}, dan \author{Hesen Chen}.

Konfigurasikan komponen

Pada halaman alur kerja Designer, tambahkan komponen LLM-Remove LaTeX Comment Lines (DLC), lalu konfigurasikan parameternya di panel sebelah kanan.

Jenis parameter

Parameter

Wajib

Deskripsi

Bawaan

Pengaturan bidang

Field to process

Ya

Bidang yang akan diproses.

None

Remove all full-line comments

Tidak

Menentukan apakah semua komentar full-line akan dihapus.

Selected

Remove all inline comments

Tidak

Menentukan apakah semua komentar inline akan dihapus.

Selected

OSS output directory

Tidak

Direktori OSS untuk data output. Jika dikosongkan, komponen akan menggunakan path ruang kerja bawaan.

None

Penyesuaian eksekusi

Number of processes

Tidak

Jumlah proses konkuren untuk pekerjaan ini.

8

Select resource group

Public resource group

Tidak

Pilih spesifikasi node (spesifikasi instans CPU atau GPU), jumlah node, dan VPC.

None

Dedicated resource group

Tidak

Pilih jumlah core CPU, memori, memori bersama, jumlah GPU, dan jumlah node.

None

Maximum runtime

Tidak

Waktu proses maksimum komponen. Pekerjaan akan dihentikan jika melebihi batas ini.

None