aboutsummaryrefslogtreecommitdiff
path: root/sentence_parser.py
diff options
context:
space:
mode:
authorStanley Yip <33562077+yipstanley@users.noreply.github.com>2020-02-29 14:20:01 -0500
committerGitHub <noreply@github.com>2020-02-29 14:20:01 -0500
commitbb2f6955bef4f079c0fa7213e80fde7a76847799 (patch)
treeef5e70925b8cdeb8229af849e33e6f3a4cceae7f /sentence_parser.py
parent640f14da28d97600fb32d09023fc932e3a4052c4 (diff)
parent2f6e27c67d1790d4350eede3003f0b614460f4d1 (diff)
Merge pull request #343 from browngraphicslab/pen
Pen
Diffstat (limited to 'sentence_parser.py')
-rw-r--r--sentence_parser.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/sentence_parser.py b/sentence_parser.py
new file mode 100644
index 000000000..a07b25f6d
--- /dev/null
+++ b/sentence_parser.py
@@ -0,0 +1,7 @@
+def parse_text(file_path):
+ with open(file_path, encoding='utf8',mode='r+') as f:
+ lines = f.readlines()
+ print(len(lines))
+ print(lines[1][1])
+
+parse_text("eng_news-typical_2016_10K-sentences.txt") \ No newline at end of file