docs(ai): Comprehensive AI Developer Handbook & Submodule Guides — Training from Scratch in Pure .aira
This commit is contained in:
1 parent
44ad01a87d
commit
a690296e7c
10 files changed
+431
-15
No files matched your search
@@ -0,0 +1,19 @@
|
||||
# 📝 AIRA NLP & Tokenization Engine (`ai/nlp`)
|
||||
|
||||
[](https://github.com/adameehanairagroup/Airalang)
|
||||
[](https://github.com/adameehanairagroup/Airalang)
|
||||
|
||||
The `ai/nlp` package implements text tokenization, byte-pair encoding (BPE), vocabulary mapping, and dense semantic embedding search.
|
||||
|
||||
```aira
|
||||
import "ai/nlp";
|
||||
|
||||
let tokenizer = new BPETokenizer();
|
||||
tokenizer.load_vocab("vocab.json", "merges.txt");
|
||||
|
||||
let token_ids = tokenizer.encode("Sovereign AI Engineering in AIRA");
|
||||
say token_ids; // [1284, 9942, 381, 2901]
|
||||
|
||||
let text = tokenizer.decode(token_ids);
|
||||
say text;
|
||||
```
|
||||
Reference in new issue
Block a user