This is an automated email from the ASF dual-hosted git repository.
aradzinski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft-website.git
The following commit(s) were added to refs/heads/master by this push:
new 1162f42 WIP.
1162f42 is described below
commit 1162f426520a9162a1a382397833ac5a52f87835
Author: Aaron Radzinski <[email protected]>
AuthorDate: Fri Nov 13 10:57:36 2020 -0800
WIP.
---
_data/news.yml | 10 +++++++++
_layouts/blog.html | 52 +++++++++++++-------------------------------
_scss/blogs.scss | 51 +++++++++++++++++++++++++++++++------------
blogs.html | 5 ++---
blogs/short_term_memory.html | 34 +++++++++++++++++++++++++++++
index.html | 1 -
6 files changed, 98 insertions(+), 55 deletions(-)
diff --git a/_data/news.yml b/_data/news.yml
index 79c144a..5c8aefa 100644
--- a/_data/news.yml
+++ b/_data/news.yml
@@ -46,3 +46,13 @@
linkedin_id: aaron-radzinski-6b2228167
twitter_id: aaron_radzinski
medium_id: aradzinski
+
+- title: 📜 Short-Term Memory - Maintaining Conversation Context
+ url: /blogs/short_term_memory.html
+ excerpt: Short-Term Memory (STM), a technique used to maintain
conversational context in NLPCraft. Maintaining the proper conversation context
— remembering what the current conversation is about — is essential for all
human interaction and thus essential for computer-based natural language
understanding.
+ author: Aaron Radzinksi
+ avatar_url: images/lion.jpg
+ publish_date: July 26, 2019
+ linkedin_id: aaron-radzinski-6b2228167
+ twitter_id: aaron_radzinski
+ medium_id: aradzinski
diff --git a/_layouts/blog.html b/_layouts/blog.html
index 31f99e1..10663e7 100644
--- a/_layouts/blog.html
+++ b/_layouts/blog.html
@@ -24,7 +24,7 @@ layout: default
<ol class="breadcrumb">
<li class="mr-1"><a href="index.html">Home</a></li>
<li class="mr-1"><a href="/blogs.html">Blogs</a></li>
- <li class="mr-1 active">{{ page.title }}</li>
+ <li class="mr-1 active">{{ page.active_crumb }}</li>
</ol>
<h1 class="page-title">
@@ -41,46 +41,24 @@ layout: default
</ul>
</div>
<div id="blog" class="col-md-8 second-column">
+ <section id="intro">
+ <div class="blog-header">
+ <div class="blog-title">{{ page.blog_title }}</div>
+ <div class="blog-avatar"><img class="avatar-img"
src="{{ page.author_avatar | relative_url}}" alt=""></div>
+ <div class="text-nowrap blog-author">{{
page.author_name}}</div>
+ {% if page.author_linkedin_id %}<a target="linkedin"
href="https://www.linkedin.com/in/{{ page.author_linkedin_id}}/"><i class="fab
fa-fw fa-linkedin"></i></a>{% endif %}
+ {% if page.author_medium_id %}<a target="medium"
href="https://medium.com/@{{ page.author_medium_id}}"><i class="fab fa-fw
fa-medium"></i></a>{% endif %}
+ {% if page.author_twitter_id %}<a target="twitter"
href="https://twitter.com/{{ page.author_twitter_id}}"><i class="fab fa-fw
fa-twitter"></i></a>{% endif %}
+
+ <div class="text-nowrap blog-date">{{
page.publish_date }}</div>
+ </div>
+ </section>
+
{{ content }}
</div>
<div class="col-md-2 third-column">
<ul class="side-nav">
- <li class="side-nav-title">Quick Links</li>
- <li>
- <img alt="" class="quick-link-img mr-2"
src="/images/github_logo.png"><a
- target="github"
-
href="https://github.com/apache/incubator-nlpcraft/tree/master/nlpcraft/src/main/scala/org/apache/nlpcraft/examples">Examples</a>
- </li>
- <li>
- <i class="fab fa-java mr-2"></i><a target="_"
href="/apis/latest/index.html">Javadoc</a>
- </li>
- <li>
- <img alt="" class="quick-link-img mr-2"
src="/images/apiary.svg"><a
-
href="https://github.com/apache/incubator-nlpcraft/blob/master/openapi/nlpcraft_swagger.yml"
- target="github">REST API</a>
- </li>
- <li>
- <i class="fas fa-download mr-2"></i><a
href="/download.html">Download</a>
- </li>
- <li>
- <i class="fas fa-blog mr-2"></i><a
href="/blogs.html">Blogs</a>
- </li>
- <li class="side-nav-title">Support</li>
- <li>
- <nobr>
- <i class="far fa-fw fa-envelope mr-2"></i><a
href="mailto:[email protected]">Dev List</a>
- </nobr>
- </li>
- <li>
- <nobr>
- <i class="fab fa-fw fa-stack-overflow mr-2"></i><a
target="so" href="https://stackoverflow.com/questions/ask">Stack Overflow</a>
- </nobr>
- </li>
- <li>
- <nobr>
- <i class="fab fa-fw fa-github mr-2"></i><a
target="github" href="https://github.com/apache/incubator-nlpcraft">GitHub</a>
- </nobr>
- </li>
+ {% include quick-links.html %}
</ul>
</div>
</div>
diff --git a/_scss/blogs.scss b/_scss/blogs.scss
index a886448..ecc4e3a 100644
--- a/_scss/blogs.scss
+++ b/_scss/blogs.scss
@@ -15,6 +15,41 @@
* limitations under the License.
*/
+img.avatar-img {
+ height: 32px;
+ margin-right: 10px;
+ vertical-align: middle;
+ -webkit-border-radius: 100%;
+ -moz-border-radius: 100%;
+ border-radius: 100%;
+}
+
+.blog-header {
+ a, a:hover, a:active, i.fas {
+ color: $color-asphalt;
+ }
+
+ .blog-author {
+ display: inline;
+ margin-right: 10px;
+ }
+
+ .blog-date {
+ margin-left: 10px;
+ display: inline;
+ }
+
+ .blog-avatar {
+ display: inline;
+ }
+
+ .blog-title {
+ font-size: 32px;
+ letter-spacing: 0.02em;
+ font-weight: 400;
+ }
+}
+
#blogs {
#blogs-container {
.blog-block {
@@ -46,24 +81,12 @@
.blog-footer {
letter-spacing: 0.02em;
- img {
- height: 32px;
- margin-right: 5px;
- vertical-align: middle;
- }
-
- img.avatar-img {
- -webkit-border-radius: 100%;
- -moz-border-radius: 100%;
- border-radius: 100%;
- }
-
a, span {
vertical-align: middle;
}
- a.blog-author {
- margin-right: 15px;
+ .blog-author {
+ margin-right: 10px;
display: inline-block;
}
}
diff --git a/blogs.html b/blogs.html
index 4206d16..66027c1 100644
--- a/blogs.html
+++ b/blogs.html
@@ -47,12 +47,11 @@ layout: interior
</div>
<div class="blog-footer">
{% if news.avatar_url %}<img class="avatar-img" src="{{
news.avatar_url | relative_url}}" alt="">{% endif %}
- {% if news.pub_logo_url %}<img class="pub-logo-img"
src="{{ news.pub_logo_url | relative_url}}" alt="">{% endif %}
- {% if news.author %}{{ news.author }}{% endif %}
+ {% if news.author %}<div class="blog-author">{{
news.author }}</div>{% endif %}
{% if news.linkedin_id %}<a target="linkedin"
href="https://www.linkedin.com/in/{{ news.linkedin_id}}/"><i class="fab fa-fw
fa-linkedin"></i></a>{% endif %}
{% if news.medium_id %}<a target="medium"
href="https://medium.com/@{{ news.medium_id}}"><i class="fab fa-fw
fa-medium"></i></a>{% endif %}
{% if news.twitter_id %}<a target="twitter"
href="https://twitter.com/{{ news.twitter_id}}"><i class="fab fa-fw
fa-twitter"></i></a>{% endif %}
- <span class="text-nowrap">{{ news.publish_date }}</span>
+ <span class="text-nowrap">{{news.publish_date}}</span>
</div>
</div>
{% endfor %}
diff --git a/blogs/short_term_memory.html b/blogs/short_term_memory.html
new file mode 100644
index 0000000..12b20fa
--- /dev/null
+++ b/blogs/short_term_memory.html
@@ -0,0 +1,34 @@
+---
+active_crumb: Short-Term Memory
+layout: blog
+blog_title: Short-Term Memory - Maintaining Conversation Context
+author_name: Aaron Radzinski
+author_avatar: images/lion.jpg
+author_linkedin_id: aaron-radzinski-6b2228167
+author_twitter_id: aaron_radzinski
+author_medium_id: aradzinski
+publish_date: July 26, 2019
+---
+
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<section id="">
+
+</section>
+
+
diff --git a/index.html b/index.html
index 2b0184e..1f0b20c 100644
--- a/index.html
+++ b/index.html
@@ -287,7 +287,6 @@ layout: default
</div>
<div class="news-footer">
{% if news.avatar_url %}<img class="avatar-img" src="{{
news.avatar_url | relative_url}}" alt="">{% endif %}
- {% if news.pub_logo_url %}<img class="pub-logo-img"
src="{{ news.pub_logo_url | relative_url}}" alt="">{% endif %}
{% if news.author %}{{ news.author }}{% endif %}
{% if news.linkedin_id %}<a target="linkedin"
href="https://www.linkedin.com/in/{{ news.linkedin_id}}/"><i class="fab fa-fw
fa-linkedin"></i></a>{% endif %}
{% if news.medium_id %}<a target="medium"
href="https://medium.com/@{{ news.medium_id}}"><i class="fab fa-fw
fa-medium"></i></a>{% endif %}