-
Notifications
You must be signed in to change notification settings - Fork 5
apps cli guide
Ozan KANIK edited this page Apr 13, 2026
·
2 revisions
This page documents the command-line applications in ZemberekDotNet.Apps.
Run without arguments to list available apps:
dotnet run --project ZemberekDotNet.Apps/ZemberekDotNet.Apps.csproj-
TrainClassifier: Train a fastText-based text classifier from labeled__label__...lines. -
EvaluateClassifier: Evaluate a classifier model on a labeled test set. -
ClassificationConsole: Interactive prediction console for a trained classification model. -
PreprocessTurkishCorpus: Sentence split and tokenize corpus files (with optional lemma preprocessing). -
MorphologyConsole: Interactive Turkish morphology analysis and disambiguation. -
ValidateParityConsole: Compare Java and .NET morphology outputs and emit a parity JSON report. -
ValidateParityAbConsole: Run baseline vs trained ambiguity-resolver parity A/B and emit a compact summary JSON. -
TrainNerModel: Train Turkish perceptron NER model and export text + compressed variants. -
EvaluateNer: Evaluate NER output from either a model run or a hypothesis file. -
FindNamedEntities: Run NER on plain text input.
dotnet run --project ZemberekDotNet.Apps/ZemberekDotNet.Apps.csproj -- TrainClassifier \
--input data/news.train \
--output model/news.bin \
--learningRate 0.1 \
--epochCount 50dotnet run --project ZemberekDotNet.Apps/ZemberekDotNet.Apps.csproj -- EvaluateClassifier \
--input data/news.test \
--model model/news.bindotnet run --project ZemberekDotNet.Apps/ZemberekDotNet.Apps.csproj -- PreprocessTurkishCorpus \
--input data/raw.txt \
--output data/tokenized.txt \
--operation TOKENIZEDAllowed preprocess operations:
TOKENIZEDLEMMA
dotnet run --project ZemberekDotNet.Apps/ZemberekDotNet.Apps.csproj -- TrainNerModel \
--train data/ner-train.txt \
--dev data/ner-dev.txt \
--outputRoot out/nerdotnet run --project ZemberekDotNet.Apps/ZemberekDotNet.Apps.csproj -- EvaluateNer \
--reference data/ner-dev.txt \
--modelRoot out/ner/model-compresseddotnet run --project ZemberekDotNet.Apps/ZemberekDotNet.Apps.csproj -- MorphologyConsoledotnet run --project ZemberekDotNet.Apps/ZemberekDotNet.Apps.csproj -- ValidateParityConsole \
--input data/parity-input.txt \
--java-output data/parity-java.tsv \
--output out/parity-report.jsondotnet run --project ZemberekDotNet.Apps/ZemberekDotNet.Apps.csproj -- ValidateParityAbConsole \
--input data/parity-input.txt \
--java-output data/parity-java.tsv \
--iterations 3 \
--output out/parity-ab-report.jsonOptional: provide --java-jar instead of --java-output to generate the TSV automatically.
- Commands are discovered by class name. You can provide full class names or unique prefixes.
- Resource paths are resolved automatically in app startup, so commands can run from common working directories.
- For classification data format and workflow details, see Classification Training Guide.
Getting Started
Module Reference
- Morphology Notes
- Additions and Release Notes
- Morphemes Reference
- Classification Training Guide
- Normalization Guide
- Proper Nouns and Named Entities
- Text Dictionary Rules
API Parity & Migration
Reference
Roadmap