jiesutd / YEDDA

YEDDA: A Lightweight Collaborative Text Span Annotation Tool. Code for ACL 2018 Best Demo Paper Nomination.
Apache License 2.0
1.03k stars 297 forks source link

program get no response for large txt #17

Closed Cluluxiu closed 5 years ago

Cluluxiu commented 5 years ago

I open a 6MB Chinese txt file .I got no response when a use shortcuts key like 'a' in the 'EMOn' mode. if i am in 'RMOff' mode, it is ok. so do you have any solutions if i do not want to split the big file ? thanks!

jiesutd commented 5 years ago

@Cluluxiu How is your data like? Does your txt file contain the sentences which are splitted with '\n'? Generally the RMon will only recommend the nearest 20 sentences, it should not be to slow if your txt is splitted into sentences with '\n'.

You can also try to set a smaller size for recommending sentences at this line: https://github.com/jiesutd/YEDDA/blob/ac03bb15beed3206420f4be55d060e7730325d25/utils/recommend.py#L41