Skip to content

Commit

Permalink
new version 0.3.26
Browse files Browse the repository at this point in the history
  • Loading branch information
falgore88 committed Apr 14, 2016
1 parent a396b83 commit 78bac04
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from setuptools import setup


VERSION = "0.3.25"
VERSION = "0.3.26"

setup(
name='ta4',
Expand Down
9 changes: 9 additions & 0 deletions ta4/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,15 @@ def get_markers(sentence):
return result


def get_marker_sentences(text):
result = {}
for sentence in text:
for ph in sentence.place_holders:
for marker in ph.markers:
result.setdefault(marker.sentence.text, {}).setdefault(marker.id, []).append(ph.word)
return {keyword.lower(): map(lambda x: u" ".join(x).lower(), data.values()) for keyword, data in result.iteritems()}


def group_markers(markers, sentence):
result = []
length = len(markers) - 1
Expand Down

0 comments on commit 78bac04

Please sign in to comment.