Biotope Read
Draft stage
Biotope is in draft stage. Functionality may be missing or incomplete. The API is subject to change.
Read command implementation.
extract_knowledge(text)
Extract knowledge using NLP and other methods.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
text
|
str
|
Input text to process |
required |
Returns:
Type | Description |
---|---|
str
|
Extracted knowledge (currently just returns input) |
Source code in biotope/biotope/commands/read.py
read(text, file)
Extract knowledge from input text or file using NLP.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
text
|
str | None
|
Input text to process |
required |
file
|
str | None
|
Input file to process |
required |
Raises:
Type | Description |
---|---|
UsageError
|
If neither --text nor --file is provided. |