-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Text field missing / Costum Rest Api for Auto-Labelling #1248
Comments
I am doing my first steps with doccano, I would like to use auto-labeling too, but when I create a record. My curl body is like this {"id":99999,"model_name":"Custom REST Request","model_attrs":{"url":"http://0.0.0.0:5001/process- I compare my json body and my model_name is REST Request and your json body is CustomRESTRequestModel, I have this error in my server raise NameError(f'{model_name} is not found.') what is wrong with my auto labeling register ? I move to the previous version and still I have the same error, I dont know if I forget a step. |
@jreypy Hi, I am facing the same issue, i.e. NameError. Have you found any solution to this? Thanks |
Hi @pranavpawar3 , I really need my document auto labeled after the import and when the document has been checked... then My solution is create a Proxy (NINGX) and catch 2 requests (import and approve-labels) and overwrite services (another application) to import with labels and get all labels from the documents. Maybe I can add another proxy interceptor to override the auto-labeling and avoid the doccano service. This is an example of my nginx :
Let me know If I can help you with this. |
solution #1307 (comment) |
How to reproduce the behaviour
When sending (Testing) the Post request inside the creation of a costum rest api service for auto-labelling the request payload (which goes to doccano/django) looks like this:
My Problem/Question
I suppose this is the request which is being send to Django to create a model instance which is used to communicate with my costum rest api.
Somehow, when calling my api using doccano, the received json does only inlcude
{ "model": "models/model-best" }
. Shouldn't"text": "Example Text"
also be in there? What am I missing?The text was updated successfully, but these errors were encountered: