Skip to content

Commit

Permalink
Changed print output. Took global-includes out of manifest.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdrymon committed Feb 1, 2021
1 parent c26e498 commit 6ff6b30
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,8 @@ accordingly.

0.0.3 (30 Jan 2021)
-------------------
Changed tensorflow's verbosity setting.
Changed tensorflow's verbosity setting.

0.0.4 (31 Jan 2021)
-------------------
Moved annotator and character tuples. Changed print output while doing inference.
3 changes: 2 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
global-include *.txt *.md
include CHANGELOG.txt
include LICENSE.txt
include angel/__init__.py
8 changes: 4 additions & 4 deletions angel/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def tag(greek_text, annotator='Vanessa Gorman'):
one_hots_np = np.array(one_hotted_tokens, dtype=np.float32)

# Process through the first LSTM...
print('Making LSTM 1 predictions...')
print("Angel's looking at each word by itself...")
for aspect in morphs:
aspect.output1 = aspect.lstm1.predict(one_hots_np)

Expand All @@ -230,7 +230,7 @@ def tag(greek_text, annotator='Vanessa Gorman'):
np_dnn_input = np.array(dnn_input)

# Run outputs through DNN
print('Making DNN predictions...')
print('Reconsidering tags...')
for aspect in morphs:
aspect.output2 = aspect.dnn.predict(np_dnn_input)

Expand Down Expand Up @@ -261,7 +261,7 @@ def tag(greek_text, annotator='Vanessa Gorman'):
# dataset = tf.data.Dataset.from_tensor_slices(padded_lstm2_input).window(15, 1, 1)

# Run outputs through LSTM2
print('Making LSTM 2 predictions...')
print("Studying each word in light of its context...")
for aspect in morphs:
aspect.output3 = aspect.lstm2.predict(lstm2_ts)

Expand All @@ -283,7 +283,7 @@ def tag(greek_text, annotator='Vanessa Gorman'):
# This will keep Tensorflow quieter.
tf.compat.v1.logging.set_verbosity(tf.compat.v1.logging.ERROR)

# Load some lists that'll be needed
# Load some tuples that'll be needed
all_norm_characters = ("ζ", "ε", "ύ", "ς", "μ", "έ", "ν", "ἀ", "φ", "ί", "κ", "τ", "ω", "ρ", "ἐ", "π", "δ", "ο",
"ι", "ό", "σ", "λ", "ἡ", "ά", "θ", "̓", "ψ", "α", "υ", ".", "ῦ", "χ", "γ", "ᾳ", ",", "ὔ",
"ἵ", "η", "ή", "ῳ", "ῖ", "ὐ", "ξ", "ἰ", "β", "ῆ", "ῶ", "ἅ", "ἄ", "ὅ", "ὖ", "ώ", "ᾶ", "ἱ",
Expand Down

0 comments on commit 6ff6b30

Please sign in to comment.