HumanSignal / HumanSignal/label-studio

Labeling Hebrew text causes words to mix

Open
#1,888 4 comments 4 reactions 1 assignee Claimed by @makseq View on GitHub
editor good first issue labeling often asked problem text
Dominant language
TypeScript
Stars
28.3k
Forks
3.7k
Avg merge
14h
Merged PRs (30d)
15

Description

**Describe the bug**
I am trying to label Hebrew text (RTL language). When labels are attached to the text, the words of the text are mixed and not shown in their original order.

**To Reproduce**
Steps to reproduce the behavior:
1. Create a project with attached dataset.json [dataset.txt](https://github.com/heartexlabs/label-studio/files/7801663/dataset.txt)
2. Choose NER template
3. Start labeling the single example within the dataset. Observe the initial order.
4. Attach labels to words and see that the order of the original words is not preserved.

**Expected behavior**
I would expect the order of the words in the example to be the same with and without labels. Moreover, I would like to view the example's text in RTL mode (from right to left).

**Screenshots**
Here we see the original (correct) order of words in the example:
![image](https://user-images.githubusercontent.com/3026479/147925488-743c473e-f4e9-4a04-8b6d-7d6655a2dba2.png)

After labeling two words, words and labels are mixed and not presented properly:
![image](https://user-images.githubusercontent.com/3026479/147925612-8a5e6105-a8d8-4c09-8713-faa79135ee37.png)

**Environment (please complete the following information):**
- OS: Windows 10
- Label Studio Version 1.4
**Additional context**
Add any other context about the problem here.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.