Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
NetForge
Logo
NetForge

Start

  • Overview
  • Getting Started
  • Python
  • Evaluation splits
  • Probes
  • Your agent
  • Capability tests

Guides

  • Scenarios
  • Baselines
  • Offline RL datasets
  • Python vs JAX
  • Diagnostics
  • Difficulty and splits
  • Reproducibility
  • Belief-state graphs
  • Curriculum
  • Ray RLlib
  • Custom scenarios
  • Verification
  • PettingZoo and Gymnasium
  • SOC export (OCSF)

Benchmarks

  • Benchmarks
  • Baselines
  • Self-play / Elo
  • Run

Architecture

  • Tick loop
  • Dynamic topologies
  • OT/SCADA physics
  • Multi-modal obs
  • Zero-Trust Identity
  • Sim2Real Bridge
  • NLP-SIEM

Cyber

  • Cyber
  • Threat model
  • Red actions
  • Blue actions

API

  • Python API
  • Environment API
  • SIEM API
  • NLP encoder API
  • Sim2Real API

Contribute

  • Contribute
  • Directions

Project

  • Roadmap
  • Scope
  • Datasheet
  • Changelog
Back to top
View this page
Edit this page
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.

Next
Sim2Real API
Previous
SIEM API
Copyright © 2026, Igor Jankowski
Made with Furo
On this page
  • NLP encoder API
    • LogEncoder
      • LogEncoder.encode()
      • LogEncoder.encode_buffer()