aboutsummaryrefslogtreecommitdiff
path: root/sentence_parser.py
diff options
context:
space:
mode:
authorSam Wilkins <samwilkins333@gmail.com>2020-02-29 15:26:58 -0500
committerSam Wilkins <samwilkins333@gmail.com>2020-02-29 15:26:58 -0500
commit99a23aea54f1430594e70724b252da8f8693a24e (patch)
tree7ff95f302766d1fbb8b1dee3797a7dcbb95148b0 /sentence_parser.py
parent8c39fb5678bfdd414249f10b0b80e823370f7228 (diff)
parentbb2f6955bef4f079c0fa7213e80fde7a76847799 (diff)
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web
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