jinqiu

Results 3 comments of jinqiu

@yangheng95 好的,还有我发现了一个bug,我跑debug的时候发现的,你们这里 aspect_tokens = example.text_b[:]输出的结果不是aspect token,比如第一个句子"the staff is horrible to us",你们这行代码输出的是[“the" ",staff” ]并不是['staff'],这就导致后面的text_left, _, text_right(206行)输出的结果都不对,还有204行代码也有问题aspect = ' '.join(example.text_b)这个输出不是aspect字符串。 我后来对你们的代码进行了调整: aspect_tokens = [example.text_b[-1]]#这个对单个aspect词可以,但如果aspect包含多个token不知道行不行 aspect = example.text_b[-1] #同上,我这边取-1可能不太好(对于多个token的aspect可能有问题) 你们可以debug试试,你们这边代码输出的有问题,不知道我这样改的对不对,但按我这样,后面的text_left, _, text_right都能识别出。。。 :https://github.com/yangheng95/PyABSA/blob/bd98756c9353cacebd7f67b749ac928c547cce05/pyabsa/core/atepc/dataset_utils/data_utils_for_training.py#L189

> Hello @wzfhaha , I am trying to reproduce the result you got. But I could not find the code for generating the clusters. Can you kindly provide the code...

> Another workaround using to_sql's `method="multi"` option is described here: > > > > https://github.com/dropbox/PyHive/issues/250#issuecomment-658778041 It works!Thanks!