Skip to content

Commit ccf16ca

Browse files
committed
initial version
1 parent 3e91aca commit ccf16ca

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

q8_tika.py

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/python
2+
'''experiment with apache tika
3+
4+
5+
@author: richard lyman
6+
'''
7+
import tika
8+
tika.initVM()
9+
from tika import parser
10+
parsed = parser.from_file('15-01-01 459_Mont_Lyman.jpg')
11+
#parsed = parser.from_file('img20150901_15233271bw.jpg')
12+
print (parsed["metadata"])
13+
print (parsed["content"])
14+
print ('\n########################### No Errors ####################################')

q9_tensorflow_gpu_test.py

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Creates a graph.
2+
import tensorflow as tf
3+
a = tf.constant([1.0, 2.0, 3.0, 4.0, 5.0, 6.0], shape=[2, 3], name='a')
4+
b = tf.constant([1.0, 2.0, 3.0, 4.0, 5.0, 6.0], shape=[3, 2], name='b')
5+
c = tf.matmul(a, b)
6+
# Creates a session with log_device_placement set to True.
7+
sess = tf.Session(config=tf.ConfigProto(log_device_placement=True))
8+
# Runs the op.
9+
print (sess.run(c))

0 commit comments

Comments
 (0)