Skip to content

Commit 738bd4d

Browse files
committed
Made tensorflow path names canonical again
1 parent 9a10d6d commit 738bd4d

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

tensorflow/bilstm-tagger.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
NUM_LAYERS = 1
2525

2626
# format of files: each line is "word1/tag2 word2/tag2 ..."
27-
train_file='/data/tags/train.txt'
28-
test_file='/data/tags/dev.txt'
27+
train_file='data/tags/train.txt'
28+
test_file='data/tags/dev.txt'
2929

3030
class Vocab:
3131
def __init__(self, w2i=None):

tensorflow/bow.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ def read_dataset(filename):
2121
yield ([w2i[x] for x in words.split(" ")], t2i[tag])
2222

2323
# Read in the data
24-
train = list(read_dataset("../data/classes/train.txt"))
24+
train = list(read_dataset("data/classes/train.txt"))
2525
w2i = defaultdict(lambda: UNK, w2i)
26-
dev = list(read_dataset("../data/classes/test.txt"))
26+
dev = list(read_dataset("data/classes/test.txt"))
2727
nwords = len(w2i)
2828
ntags = len(t2i)
2929
EPOCHS = 100

tensorflow/rnnlm-batch.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
NUM_LAYERS = 1
2626

2727
# format of files: each line is "word1/tag2 word2/tag2 ..."
28-
train_file='/data/text/train.txt'
29-
test_file='/data/text/dev.txt'
28+
train_file='data/text/train.txt'
29+
test_file='data/text/dev.txt'
3030
w2i = defaultdict(count(0).next)
3131
eos = '<s>'
3232

0 commit comments

Comments
 (0)