#chat-window {
width: 400px;
height: 300px;
overflow-y: scroll;
border: 1px solid #ccc;
padding: 10px;
margin-bottom: 10px;
}
#user-input {
width: 100%;
padding: 5px;
margin-bottom: 10px;
}
#send-button {
padding: 5px 10px;
}
function sendUserInput() {
var userInput = document.getElementById(“user-input”).value;
document.getElementById(“user-input”).value = “”;
var chatWindow = document.getElementById(“chat-window”);
chatWindow.innerHTML += “You: ” + userInput + “
“;
// Send the user input to the chatbot for processing and get the response
var response = processUserInput(userInput);
chatWindow.innerHTML += “Mycelium Chatbot: ” + response + “
“;
// Scroll to the bottom of the chat window
chatWindow.scrollTop = chatWindow.scrollHeight;
}
function processUserInput(userInput) {
// Add your logic to process the user input and get the chatbot’s response
// You can make an API call to your chatbot backend or directly process the input in JavaScript
// Replace this with the actual response from the chatbot
var response = import nltk
from nltk.corpus import stopwords
from nltk.tokenize import word_tokenize
# Preprocessing function to tokenize and remove stopwords
def preprocess(text):
stop_words = set(stopwords.words(“english”))
tokens = word_tokenize(text)
tokens = [token.lower() for token in tokens if token.isalpha()]
tokens = [token for token in tokens if token not in stop_words]
return tokens
# Intent recognition function
def recognize_intent(tokens):
# Add your intent recognition logic here
# You can use rule-based matching or machine learning algorithms to identify the intent
return intent
# Response generation function
def generate_response(intent):
# Add your response generation logic here
# Based on the identified intent, generate appropriate responses
return response
# Main chatbot loop
while True:
user_input = input(“User: “)
preprocessed_input = preprocess(user_input)
intent = recognize_intent(preprocessed_input)
response = generate_response(intent)
print(“Mycelium Chatbot:”, response)
;
return response;
}
Send
Writing:
11/19/17 – World War Water – An exploration of time colonization and its relationship to water privatization and our ongoing apocalypse.
1/9/17 – Solve for Why – A treatise on math education and the role and history of the calculator.
10/1/16 – A Lens, an Experience, a Timeline, and the Ever-Reflecting Response Between Popular Television and Class Structure in America – That seems like enough.
3/9/14 – Political Poetry Set to the Music of Academia – A satire of academic writing that I also believe wholeheartedly.
Use of the Internet:
10/5/14 – Beavers – What I learned from volunteering for Acadia National Park as a high schooler.
7/10/14 – 504 Shades of Pooh – A self-analysis test based on Winnie the Pooh and my grandmother, the kindergarten teacher.
1/22/14 – 14hoursinabudhabi – My response to my grandmother dying.
Audio Projects:
1/17/17 – Working Class – A 3 episode podcast to investigate privilege, art, and capitalism.
5/8/16 – Bad Feelings – A 2 part audio project to explore the feelings that make me feel bad.
Show Production/Direction:
10/11/17 – How Hard? – A Panel Discussion and Storytelling show for the Speak Up, Rise Up Festival about the role the court plays in the Prison Industrial Complex.
9/7/17 – INHSU 2017 – A Storytelling performance at the International Hep-C Conference presenting people who are affected by the epidemic.
10/5/15 – Bad Feelings – A monthly storytelling show about feelings that are bad.
10/9/12 – Drawn Out Storytelling – An expansion of the form of storytelling through comic books and music.
Personal Performance:
6/15/18 – Stories of Complicated Dads – A Story Collider story about my father’s stay in the hospital.
9/27/16 – Attack – First Person Arts story about an anxiety attack.
9/13/16 – Too Far – First Person Arts story about my struggles with monogamy.
4/30/16 – Episode 16: Modern Stories – My story about my first week in NYC.
3/5/16 – Eighth Grade – A solo show about the worst time in everybody’s life.
9/22/15 – Second Opinion – First Person Arts story about my relationship with my dad and being an only child.
9/16/15 – School Days – A middle school story told at Tell Me A Story.
8/10/15 – The Fast Lane – Moth story about a high school accident.
10/17/14 – What’s in a Name? – A Story Collider story about my first year teaching math.
5/11/13 – Mommy – Moth story about my mother.
11/17/10 – Two Standard Deviations – A Story Collider story about college.
5/15/10 – A Capitalist? – Moth story about my first adventures in NYC.