-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to Load Text Files via Local Source Storage #6776
Comments
Hello, Would it be possible to show what your labeling template is? Ensure that your labeling configuration does not use Thank you,
|
I am using the default NER template like so: Setting "Use text from: imported file" results in the text being set to the relative file path (as shown in the previous screenshot). Setting "Use text from: set manually" results in the text being populated with just a '$'. Here is the format of my text files (simply contains the document text), this format worked with previous versions of Label Studio. Do I need to format my input files differently? |
Please switch to |
Hello, Thank you for contacting HumanSignal, I have reproduced the issue from my end, and I came up with a solution. Please update your text tag in Labelconfig as the following :
This way you will be able to dynamically fetch the text data via URL. Also, make sure to mount the whole directory path instead of the text file . See Screenshot 2 below Plese let us know if you need addtional help! Have a good day!
|
Describe the bug
I am attempting to import a set of .txt files for NER using local storage. I have had no problem configuring the storage mount and using it to import image files for CV tasks. However, attempts to import the .txt files results in only the filename showing up in the text field (instead of the actual text content of the file) - see attached.
If I instead manually upload the file through the GUI then it loads just fine (see ID #16 in the screenshot).
My Source storage setting are as follows:
Storage Type = Local Files
Storage Title = NLP
Absolute Local Path = .../pyvenv/labelstudio/data/nlp (Check connection works as expected)
Treat every bucket object as source file = True
To Reproduce
Steps to reproduce the behavior:
Attempt to load a directory containing a set of simple text files via source storage.
Compare the results against manually loading the text files via the GUI.
Expected behavior
I would expect the loading of the files using the local storage option to produce the same results as manually uploading the files through the GUI.
Screenshots
Environment
Additional context
I also tried converting the .txt files to .json and experience the same issue (files load fine when manually uploaded from GUI but do not load text when using local storage mount).
fairytale.json:
{
"data": {
"text": "The Adventure of Sparkle the Brave..."
}
}
The text was updated successfully, but these errors were encountered: