-
line 52, in transform
for text in sentences:
text = text[:max_len - 2]
TypeError: 'NoneType' object is not subscriptable
-
作者您好,这段代码中,我有个疑问
def gen_features(tokens,labels,tokenizer,tag2id,max_len):
tags,input_ids,token_type_ids,attention_masks,lengths = [],[],[],[],[]
for i,(token,label) in enumerate(zip(tokens…
-
If I try to use the distilled model with Sentence Transformers, I am getting the following error:
```
---------------------------------------------------------------------------
AttributeError …
-
It separates `don't` into the tokens `don` and `t`.
Of course, I can work around with the `regex` tokenizer...
-
**Describe the bug**
I am trying to do NER Task using crf-tagger. I pre-tokenized the sentence using bert-tokenizer. The sentence and labels are based on word-piece when are sent to crf-tagger.
Als…
ksboy updated
4 years ago
-
Hey, I am unable to load the model from the huggingface checkpoint. Here is the code and the error:
```py
from DictMatching.moco import MoCo
from utilsWord.test_args import getArgs
from transfor…
-
I am using BERT to do sentiment classification. I am currently classifying into positive, negative and neutral.
I have some data with emojis and it is always classifying them as neutral. I think I …
-
Hello all,
I was wondering if you guys have a sentence embedding transformer with emojis support. If not, could you please point me to a platform that does have it?
Many thanks,
Alejandro
-
outputs = model(**inputs)
File "C:\Users\Rudraksh\Anaconda3\envs\bert_pre\lib\site-packages\torch\nn\modules\module.py", line 547, in __call__
result = self.forward(*input, **kwargs)
File "d:\trans…
-
I want to compute bigram collocations per sentence and tried to output my demo results in a jupyter notebook. Only for those four/five sentence combinations and a window size of larger than 4, the ord…