RWET Final Documentation: Decent Dialogues

Inspiration and Intention

As a foreigner, when I talk with people in English, it’s sometimes a little bit embarrassing. Like when people ask me:”How’s going?” I’m always not if I should answer like “good”/”fine”, or answer it with more details or emotions to show my respect – cuz in China, people never greet by asking questions.

So we are wondering if we can build up a specific structure for questions and answers, based on different people’s styles.

What We Do

  • Select the most frequently-used words quoted from various celebrities;
  • Based on our source texts, re-construct the words and generate different questions;
  • Answer these special-style-questions with a fixed structure.

    Techniques We Use

  • Web scrapping using selenium
  • Enable user queries using Flask
  • Extract part-of-speech tagging using Spacy
  • Reform the sentence based on a certain structure

    Examples We’ve Got

    Final Results

    Final Performance

RWET Assignment 5 & 7

I combined these two assignments together (API and function).

import urllib
import json
import sys
import random

for line in sys.stdin:
line = line.strip()
words = line.split(” “)
for word in words:
if len(word)>=1:
api_key = “a2a73e7b926c924fad7001ca3111acd55af2ffabf50eb4ae5”
for kWord in kWords:
# print kWord
# print type(kWord)

url = “”+kWord+”/relatedWords?useCanonical=true&relationshipTypes=synonym&limitPerRelationshipType=10&api_key=”+api_key
doc_str = urllib.urlopen(url).read()
doc_data = json.loads(doc_str)

except IndexError:

# try:
# synonyms=doc_data[0][“words”]
# synonym=random.choice(synonyms)
# except IndexError:
# print “error”
# synonym=”universal”

# synonyms=doc_data[0][“words”]
# synonym=random.choice(synonyms)
print synonym

So the course description is changed to be like this:

Subtraction Assignment 10: 4 Axis 3D Part

At first I found a model of a high-heel shoe online.

Ben taught me how to set everything, but he told me this project is not qualified, since I’m supposed to build the model myself.

So I tried it in Rhino:

There’s a problem that the 4 Axis Mill asks us to use materials with long x-length (and I don’t know why), but then my classmate told me we can fake the data on the software.

Another problem is that it’s hard to carve characters or patterns on the shapes – it will leave very shallow marks, but hard to see it clearly.