objectivist-ner 0.0.2 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +68 -16
- package/index.ts +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -338,22 +338,6 @@ Tested on a complex input with 11 entities across 6 classes:
|
|
|
338
338
|
| Boston | location | — | location |
|
|
339
339
|
| **Found** | **3/11** | **8/11** | **11/11** |
|
|
340
340
|
|
|
341
|
-
## Integration with objectivist-lattice
|
|
342
|
-
|
|
343
|
-
This tool is designed to work with **[objectivist-lattice](https://github.com/richardanaya/objectivist-lattice)** — a knowledge management system that enforces the Objectivist hierarchy: percepts → concepts → principles → actions.
|
|
344
|
-
|
|
345
|
-
**objectivist-ner** extracts the percepts and concepts. **objectivist-lattice** validates and organizes them into principles you can act on.
|
|
346
|
-
|
|
347
|
-
### Workflow
|
|
348
|
-
|
|
349
|
-
```bash
|
|
350
|
-
# Extract structured observations from text
|
|
351
|
-
ner --file chapter1.txt --detect-negation --resolve > percepts.json
|
|
352
|
-
|
|
353
|
-
# Import into your knowledge lattice
|
|
354
|
-
# (See objectivist-lattice documentation for details)
|
|
355
|
-
```
|
|
356
|
-
|
|
357
341
|
## Epistemological Design
|
|
358
342
|
|
|
359
343
|
Each feature maps to an Objectivist principle:
|
|
@@ -372,3 +356,71 @@ Use any GGUF model:
|
|
|
372
356
|
ner "text" --model "hf:unsloth/Qwen3-8B-GGUF:Qwen3-8B-Q4_K_M.gguf"
|
|
373
357
|
ner "text" --model ./my-model.gguf
|
|
374
358
|
```
|
|
359
|
+
|
|
360
|
+
---
|
|
361
|
+
|
|
362
|
+
## Complete Ontology Schema Example
|
|
363
|
+
|
|
364
|
+
Schema files let you define your entire ontology in one place:
|
|
365
|
+
|
|
366
|
+
```json
|
|
367
|
+
{
|
|
368
|
+
"taxonomy": {
|
|
369
|
+
"organism": [
|
|
370
|
+
"person",
|
|
371
|
+
{
|
|
372
|
+
"animal": ["dog", "cat", "bird"]
|
|
373
|
+
}
|
|
374
|
+
],
|
|
375
|
+
"place": [
|
|
376
|
+
"city",
|
|
377
|
+
"country",
|
|
378
|
+
{
|
|
379
|
+
"building": ["hospital", "school", "office"]
|
|
380
|
+
}
|
|
381
|
+
],
|
|
382
|
+
"institution": ["company", "university", "government_agency"],
|
|
383
|
+
"concept": ["idea", "theory", "principle"]
|
|
384
|
+
},
|
|
385
|
+
"classes": ["person", "organization", "location", "event", "disease", "drug"],
|
|
386
|
+
"attributes": ["role", "age", "location", "date", "affiliation", "specialty"],
|
|
387
|
+
"attrValues": {
|
|
388
|
+
"role": ["doctor", "researcher", "patient", "student"],
|
|
389
|
+
"location": ["Boston", "New York", "London", "Tokyo"]
|
|
390
|
+
},
|
|
391
|
+
"relations": [
|
|
392
|
+
"works_at",
|
|
393
|
+
"located_in",
|
|
394
|
+
"treats",
|
|
395
|
+
"studies",
|
|
396
|
+
"collaborates_with"
|
|
397
|
+
],
|
|
398
|
+
"relationClasses": [
|
|
399
|
+
"employment",
|
|
400
|
+
"spatial",
|
|
401
|
+
"medical",
|
|
402
|
+
"academic",
|
|
403
|
+
"professional"
|
|
404
|
+
]
|
|
405
|
+
}
|
|
406
|
+
```
|
|
407
|
+
|
|
408
|
+
Usage:
|
|
409
|
+
|
|
410
|
+
```bash
|
|
411
|
+
ner --schema complete-ontology.json "Dr. Chen works at Massachusetts General Hospital in Boston"
|
|
412
|
+
```
|
|
413
|
+
|
|
414
|
+
This loads taxonomy, classes, attributes, attribute values, relation types, and relation classes all at once.
|
|
415
|
+
|
|
416
|
+
---
|
|
417
|
+
|
|
418
|
+
## Building Principles from Percepts
|
|
419
|
+
|
|
420
|
+
`objectivist-ner` extracts the raw perceptual material from any text: concrete entities with exact spans, hierarchical taxonomy (genus and differentia), coreferences preserving identity, assertions vs. negations, and relations.
|
|
421
|
+
|
|
422
|
+
This supplies the inductive base required by Objectivist epistemology.
|
|
423
|
+
|
|
424
|
+
Feed it philosophical works, scientific papers, historical accounts, or any reality-grounded writing. The parsed output gives you the concretes needed to form concepts and derive principles—anchored in observed facts, not floating abstractions.
|
|
425
|
+
|
|
426
|
+
Use it to mine source material, reduce arguments to their perceptual roots, and build your own objective knowledge from existence.
|
package/index.ts
CHANGED