Skip to content
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

Feature Request: Show context when annotation. #466

Open
mingwei-liu opened this issue Nov 26, 2019 · 3 comments
Open

Feature Request: Show context when annotation. #466

mingwei-liu opened this issue Nov 26, 2019 · 3 comments
Labels
feature request feature request for doccano

Comments

@mingwei-liu
Copy link

Feature description

Thanks for the hard work! The newest version actually solve this problem by showing the key-value pairs in the right side. Thus we could put some context in the right side as key-value pair. For example, when we annotate one wikipadia page, the key-value will contain "wikipadia title" ,"url" and something like this.

But if the context is large text, it won't work...

For example, here is my annotation task, we annotate each sentence in a document into one type. And we used document classification. User annotate one sentence at a time. Actually, when you annotate one sentence you need to see the context sentence of the annoted sentence and even the whole document. Thus we have to parse the data like this.

Here is one sentence when user see the annoated sentence, we connect the annoated sentence and the context string directly, separated by some delimiters("----------"):

However, using the same path, I was able to load the file when I did getResourceAsStream().
-------------------------------------------------------------------------------------------------
question body:
I was trying to load a file in a webapp, and I was getting a FileNotFound exception when I used FileInputStream. However, using the same path, I was able to load the file when I did getResourceAsStream(). What is the difference between the two methods, and why does one work while the other doesn't?

Is it possible to add an area below the area where the text need to be annoated to show the context? The content of this context area is determined by the "context" field in the data set for each annotated data point. It can be empty, so this area is hidden.

I think this context is useful for other annotation. For example, when I annoatate the type of Stack Overflow answer post, the question post should be shown to make the annotator understand the answer context.

@Hironsan Hironsan added the feature request feature request for doccano label Nov 26, 2019
@Hironsan
Copy link
Member

スクリーンショット 2019-11-26 17 04 46

スクリーンショット 2019-11-26 17 27 05

doccano_meta

スクリーンショット 2019-11-26 16 47 23

@yinhangbupt
Copy link

yinhangbupt commented Dec 2, 2019

Context is quite useful in conversations. Really hope this.

@BoyanH
Copy link

BoyanH commented May 12, 2021

Perhaps it would be more convenient to display the context (entire text) and highlight the sentence (snippet) to be annotated. Can't this be an extension to the existing sequence labeling functionality (only one sequence per document, with shortcuts for annotation)?

image

Do you need any help with this? I also really hope this feature gets implemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request feature request for doccano
Projects
None yet
Development

No branches or pull requests

5 participants
@BoyanH @Hironsan @yinhangbupt @mingwei-liu and others