Skip to content

Commit

Permalink
テスト用mainファイル追加
Browse files Browse the repository at this point in the history
  • Loading branch information
pinfort committed Dec 18, 2018
1 parent 21fff61 commit 4c915c0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions main2.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from segmentsFromFile import SegmentFromFile
from analyzeSegment import analyzeSegment

def main(path):
segs = SegmentFromFile(path)
for seg in segs.tokenizeLoop():
analyzed = analyzeSegment().analyze(seg["marker"], seg["body"])
print(analyzed) if analyzed is not None else ""

if __name__ == '__main__':
path = "C:\\Users\\pinfo\\Downloads\\DsmAkbxVYAEKktJ_orig.jpg"
main(path)

0 comments on commit 4c915c0

Please sign in to comment.