20171110 00:12
|
# coding:utf-8
params = {}
|
gtl_gettimeline.py |
|
# coding: utf-8 args = sys.argv # open json Timeline theTimeline = json.loads(args[1], "utf-8")
textForSave = json.dumps(theEline , ensure_ascii=False) |
tl2c_timeline2context.py |
|
# coding: utf-8
# open json ContextTape
def ContextToIntent ( Context , ContextTape ): args = sys.argv for theStatus in theTimeline: textForSave = json.dumps(theTimeline , ensure_ascii=False) |
c2i_context2intent.py |
|
# coding: utf-8 args = sys.argv
api = tweepy.API(auth)
# open json ContextTape theIntent = json.loads(args[1], "utf-8") def IntentToAction ( ContextTape ): IntentToAction( theIntent ) |
i2a_intent2action.py |
20171103 16:18
|
# coding: utf-8
theEline = [] textForSave = json.dumps(theEline , ensure_ascii=False) |
tl2c.py |
|
# coding:utf-8
params = {}
|
gettimeline.py |
| CONSUMER_KEY = "XXXXXXXX" CONSUMER_SECRET = "XXXXXXXX" ACCESS_TOKEN = "XXXXXXXX" ACCESS_TOKEN_SECRET = "XXXXXXXX" |
settings.py |
|
# coding: utf-8 #textForSave = json.dumps(theContext , sort_keys=True,
ensure_ascii=False) # open json ContextTape # open json Context
|
contexttape2017.py |
| ["夜", "verval", "13時"] | Context.json |
| [ {"condition": ["午前"], "intent": {"text": "おはようございます。"}}, {"condition": ["昼", "昼", "昼", "昼"], "intent": {"text": "こんにちは。"}}, {"condition": ["昼"], "intent": {"text": "どうも。"}}, {"condition": ["夜"], "intent": {"text": "こんばんは。"}} ] |
ContextTape.json |
[upgm@localhost ~]$
20171013 17:06
Cent OS 64 ビット_for_meacb-padic-NEologdで稼動中。
|
# coding: utf-8 #textForSave = json.dumps(theContext , sort_keys=True,
ensure_ascii=False) # open json ContextTape # open json Context
|
contexttape2017.py |
| ["夜", "verval", "13時"] | Context.json |
| [ {"condition": ["午前"], "intent": {"text": "おはようございます。"}}, {"condition": ["昼", "昼", "昼", "昼"], "intent": {"text": "こんにちは。"}}, {"condition": ["昼"], "intent": {"text": "どうも。"}}, {"condition": ["夜"], "intent": {"text": "こんばんは。"}} ] |
ContextTape.json |
[upgm@localhost ~]$ ls -al |grep json
-rw-rw-r--. 1 upgm upgm 27 10月 13 17:06 Context.json
-rwxrw-rw-. 1 upgm upgm 306 10月 13 16:54 ContextTape.json
20171013 16:30
|
# coding: utf-8 textForSave = json.dumps(theContextTape , sort_keys=True,
ensure_ascii=False, indent=2) def ContextToIntent ( Context , ContextTape ):
|
20171013 16:00
|
# coding: utf-8 textForSave = json.dumps(theContextTape , sort_keys=True,
ensure_ascii=False, indent=2) def ContextToIntent ( Context , ContextTape ):
|
|
# coding: utf-8 #textForSave = json.dumps(theContext , sort_keys=True,
ensure_ascii=False) # open json ContextTape # open json Context
|
contexttape2017.py |
| ["夜", "verval", "13時"] | Context.json |
| [ {"condition": ["午前"], "intent": {"text": "おはようございます。"}}, {"condition": ["昼", "昼", "昼", "昼"], "intent": {"text": "こんにちは。"}}, {"condition": ["昼"], "intent": {"text": "どうも。"}}, {"condition": ["夜"], "intent": {"text": "こんばんは。"}} ] |
ContextTape.json |
[upgm@localhost ~]$