File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -137,7 +137,11 @@ def extract_features(
137137 :return: list of lists of features to be fed to CRF
138138 """
139139 doc_features = []
140- doc = ["xxpad" for i in range (window )] + doc + ["xxpad" for i in range (window )]
140+ doc = (
141+ ["xxpad" for i in range (window )]
142+ + doc
143+ + ["xxpad" for i in range (window )]
144+ )
141145
142146 # add enders and starters
143147 doc_ender = []
Original file line number Diff line number Diff line change @@ -378,7 +378,8 @@ def test_sent_tokenize(self):
378378 + " จึงใคร่ขออภัยในความบกพร่องทั้งปวงมา ณ ที่นี้"
379379 )
380380 sent_3_toks = [
381- "(1) บทความนี้ผู้เขียนสังเคราะห์ขึ้นมาจากผลงานวิจัยที่เคยทำมาในอดีต " ,
381+ "(1) บทความนี้ผู้เขียนสังเคราะห์ขึ้นมา"
382+ + "จากผลงานวิจัยที่เคยทำมาในอดีต " ,
382383 "มิได้ทำการศึกษาค้นคว้าใหม่อย่างกว้างขวางแต่อย่างใด " ,
383384 "จึงใคร่ขออภัยในความบกพร่องทั้งปวงมา ณ ที่นี้" ,
384385 ]
You can’t perform that action at this time.
0 commit comments