This plugin is used to generate a serial of Sentenses for writting.
Sengener based on obsidian-completr. I copied lots of code from it. https://github.com/tth05/obsidian-completr
download and install obsidian. Create a vault and specify the path.
goto the vault folder. download from releases , and extract them to the plugin folder, the path like: VAULT/.obsidian/plugins/obsidian-sengener.
Open setting, enable community plugins, then set you options, enable SenSener and configure hot-keys. The default shortcut key is ctrl+quotation
.
You can also select different authoring models and adjust other parameters.
Create a document and start writing. Enjoy it. And contact me: zazaji@sina.com.
I build the API service with GPT2. You can also use GPT2 to generate Sentenses directly , or Another one, like yuanyu, or chatGPT.
You can build your API service for generating Sentenses. Or you can use the sample service, just for test.
The example provides english model and chinese model, and Full-text search . If you want use Another language , you can train your language generation service.
Data service contain text-generator and full-text-search. The new repo will be on soon.
You can build a API service like : Post Json:
{
"context": "Yes, We ",
"token": "Your_token",
"article_type": "english",
"max_length": 10,
"number": 3,
"is_index": true
}
Response Json:
{
"ref": [{
"content": "...",
"title": "Nothing"
}],
"sentenses": [{
"value": ", the people of the United States, stand together"
}, {
"value": " to say, this is the best deal we've"
}, {
"value": " can't say anything, but it's not our"
}]
}