joshruby commited on
Commit
b82b22e
·
verified ·
1 Parent(s): b12033a

hits carry their twin segment

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -340,7 +340,7 @@ def item(s, tag, score=None, cap=320):
340
  en_ref, he_ref = refs(s)
341
  c = int(X["cls"][s])
342
  return {"seg": int(s), "ref": en_ref, "he": he_ref, "shelf": SHELVES[c & 0x0F] if (c & 0x0F) < 8 else "Other",
343
- "primary": bool(c & 0x10), "tag": tag, "score": None if score is None else round(float(score), 3),
344
  **dict(zip(("text", "en"), text_pair(s, cap)))}
345
 
346
 
 
340
  en_ref, he_ref = refs(s)
341
  c = int(X["cls"][s])
342
  return {"seg": int(s), "ref": en_ref, "he": he_ref, "shelf": SHELVES[c & 0x0F] if (c & 0x0F) < 8 else "Other",
343
+ "primary": bool(c & 0x10), "twin": X["twin"].get(int(s)), "tag": tag, "score": None if score is None else round(float(score), 3),
344
  **dict(zip(("text", "en"), text_pair(s, cap)))}
345
 
346