Skip to content
This repository has been archived by the owner on May 12, 2024. It is now read-only.

Commit

Permalink
plus signs
Browse files Browse the repository at this point in the history
  • Loading branch information
Jemoka committed Nov 25, 2023
1 parent f3f9381 commit d2a5e69
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions baln/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

from multiprocessing import Process, freeze_support

VERSION="0.3.53"
NOTES="dutch bulletize and align"
VERSION="0.3.54"
NOTES="fixes for plus signs"

#################### OPTIONS ################################

Expand Down
4 changes: 4 additions & 0 deletions baln/fa.py
Original file line number Diff line number Diff line change
Expand Up @@ -519,12 +519,16 @@ def transcript_word_alignment(elan, alignments, alignment_form="long", aggressiv
# replace sentence
sentence = " ".join(sentence_bulleted).strip()

# while len(sentence.strip()) > 0 and sentence.strip()[0] == "+":
# setence = sentence[1:]

### Final Santy Checks and Shape Conformations ###
# if you can insert proper logic, do so. If not, use
# this area as the last-ditch preprocessing step to
# make spontaneous final transcript adjustments happen

# remove extra delimiters, as a final sanity check
sentence = re.sub(r"(\+ ?)+(.*)", r"\2", sentence)
sentence = sentence.replace("+ ","+")
sentence = sentence.replace("_ ","_")
sentence = sentence.replace("- ","-")
Expand Down
2 changes: 1 addition & 1 deletion meta.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% set name = "batchalign" %}
{% set version = "0.3.53" %}
{% set version = "0.3.54" %}

package:
name: {{ name }}
Expand Down

0 comments on commit d2a5e69

Please sign in to comment.