-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
enhancementNew feature or requestNew feature or request
Milestone
Description
Should add a function which splits a label index into two label indices using an index as a pivot. This function would use a single binary search to identify the middle label and return indices of the labels on either side.
rest_concepts = concepts
for sentence in sentences:
sentence_concepts, rest_concepts = rest_concepts.split(sentence.end_index)
for concept in sentence_concepts:
pass would have half as many binary searches as:
for sentence in sentences:
for concept in concepts.inside(sentence):
passMetadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request