Home Start Python Cyber Eval Architecture API GitHub NLP encoder API¶ class netforge_rl.nlp.log_encoder.LogEncoder(backend: Literal['tfidf', 'transformer'] = 'tfidf', cache_size: int = 512)[source]¶ Bases: object Encode SIEM log strings to fixed-dim float32 vectors. encode(text: str) → ndarray[source]¶ Encode one log string. encode_buffer(log_lines: list, agg: str = 'mean') → ndarray[source]¶ Encode a batch of log lines.