Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
use auto generated README
  • Loading branch information
dizcology committed Sep 18, 2017
commit 4a1ec6635c8f7effc119e359f6527244bdd4d178
80 changes: 0 additions & 80 deletions language/classify_text/README.md

This file was deleted.

11 changes: 9 additions & 2 deletions language/classify_text/classify_text_tutorial.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python

# Copyright 2017, Google, Inc.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done.

# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -12,7 +14,12 @@
# limitations under the License.

# [START classify_text_tutorial]
"""Using the classify_text method to cluster texts."""
"""Using the classify_text method to find content categories of text files,
Then use the content category labels to compare text similarity.

For more information, see the tutorial page at
https://cloud.google.com/natural-language/docs/classify-text-tutorial.
"""

# [START classify_text_tutorial_import]
import argparse
Expand Down Expand Up @@ -59,7 +66,7 @@ def classify(text, verbose=True):

# [START def_index]
def index(path, index_file):
"""Classify each text file in the directory and write
"""Classify each text file in a directory and write
the results to the index_file.
"""

Expand Down