Expand description
This is an implementation of JSON-NLP in Rust. JSON-NLP provides the data structures for detailed Natural Language Processing (NLP) annotations of speech and text.
(C) 2021 by Semiring Inc., Damir Cavar damir@semiring.com
Version 0.0.4
See for more details:
Structs§
- Attribute
- This struct encodes generic attribute value tuples for Attribute Value Matrix (AVM) based encoding of properties.
- Clause
- contains clause information, assuming that sentences contain one or more clauses.
- Constituent
Parse - This struct contains information about the constituent parse tree for a sentence.
- Coreference
- This struct contains information about a coreference relation between one referent and a list of refering expressions.
- Coreference
Referents - This struct contains information about a referent or anaphoric expression that refers to some referent.
- Coreference
Representantive - This struct contains information about a representative phrase or token for coreference.
- Dependency
- contains dependency information as part of dependency trees. A dependency is a tuple that contains a governor token ID, a dependent token ID, and a dependency label. In addition, each dependency can provide probability information about the confidence or another likelihood property.
- Dependency
Tree - This struct contains information about a dependency tree. A dependency tree is a set of dependency triples. In addition a tree provides the possibility to encode a probability score for the dependency tree.
- Document
- This struct contains all the information for one particular document.
- Entity
- This struct encodes entity properties.
- Expression
- This struct provides information about expressions or chunks in the text.
- JSONNLP
- This struct contains general elements of a JSON-NLP document.
- Meta
- contains the metadata for the JSON-NLP and individual documents. The metadata is using Dublin Core (DC) terms.
- Paragraph
- This struct contains information about paragraph properties in the text.
- Relation
- This struct encodes relations and properties in a graph for entity, cocept, or knowledge graphs.
- Scope
- This struct contains information about scope relations between tokens or phrases in a sentence.
- Sentence
- contains sentence information.
- Token
- contains the token information.
- Token
Features - contains different morpho-syntactic, semantic, or orthographic token features.
- Triple
- This struct encodes triples for RDF, JSON-LD, or general Knowledge Graph encoding.
Functions§
- from_
file - This function reads a JSON-NLP document from a file and returns a JSONNLP struct.
- from_
string - This function converts a string containing JSON-NLP, returning a JSONNLP struct.
- get_
json - This function returns a string representation of a JSONNLP struct/object.