aboutsummaryrefslogtreecommitdiff
path: root/sentence_parser.py
diff options
context:
space:
mode:
authoreeng5 <eleanor_eng@brown.edu>2020-02-09 14:59:57 -0500
committereeng5 <eleanor_eng@brown.edu>2020-02-09 14:59:57 -0500
commitdaa8898f70bd44d2716f1f0d3371a8435a3ff638 (patch)
treeccb2ea544eeed0413370cdd69e758faec6170690 /sentence_parser.py
parent1e36055e3674fe33dd39f6ad79c969531f7b447c (diff)
parentf6179334d6f2942631caa17b7c8ae2531d87c7c4 (diff)
Merge branch 'pen' of https://github.com/browngraphicslab/Dash-Web into 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