王嘉楠

Results 11 issues of 王嘉楠

Hi, I have a question about the data preprocessing. I mean this line: https://github.com/abisee/pointer-generator/blob/master/batcher.py#L71 Here you create `enc_input_extend_vocab` and modify `target`, but `dec_input ` unchanged. Why didn't you replace the...

How to reproduce the behaviour --------- ![image](https://user-images.githubusercontent.com/5330101/183066305-cae5bac3-e14b-4be8-92be-1c103a1dddf7.png) ![image](https://user-images.githubusercontent.com/5330101/183066437-c9b63e18-d9da-4299-a432-e13ac54c268d.png) ![image](https://user-images.githubusercontent.com/5330101/183066779-44c86af6-6680-4137-92ba-b2eb15509472.png) ``` [ {% for entity in input %} { "start_offset": {{ entity.start_offset }}, "end_offset": {{ entity.end_offset}}, "label": "{{ entity.label }}" }{%...

**Describe the bug** A clear and concise description of what the bug is. **To Reproduce** Steps to reproduce the behavior: ``` from transformers import BertModel from torchinfo import summary bert_base_path...

good first issue

Hi, do you have a plan to train a model by new dataset from aifenge?

苏神你好,在relation_extraction那个例子中有一行是random.choice选择主语: https://github.com/bojone/bert_in_keras/blob/master/relation_extract.py#L171 这里k1随机出来之后,其实对应k1的正确k2就有了,但是k2你也是随机选出来的,这使得k2有可能选对,也有可能选错,选错的话就会在下面`for j in items.get((k1, k2), []):`时为[],o1和o2都是全0的,当前错误的subject没有对应的object和predicate。这里是为了加入反例训练样本吗?这种做法有什么reference也是这样吗?不是很了解这块,希望向您请教下~

For OpenAI API, they provide both Completion and Embedding API. And they claimed that text embedding was [trained by Contrastive Pre-Training](https://arxiv.org/abs/2201.10005). Now LLaMA/Vicuna have basically replicated the function of OpenAI's...

good first issue
help wanted

``` from pecos.xmc import Indexer import scipy.sparse as smat import numpy as np label_embeddings = np.array( [[-9.21174158, 5.11299655], [-8.59250195, -1.11406841], [-4.30549653, 3.99404334], [-4.43811548, 4.68773409], [-6.00330942, 7.96222741], [-6.87172864, 8.01769469], [-8.86330667, 4.96141572],...

bug

这份代码跑不了了,crf层会报错: ``` Traceback (most recent call last): File "/data/jarvixwang/Project/BERT-BiLSTM-CRF/train.py", line 32, in train_bert_model(para, use_generator=False) File "/data/jarvixwang/Project/BERT-BiLSTM-CRF/train.py", line 13, in train_bert_model model = ModelLib.BERT_MODEL(para) File "/data/jarvixwang/Project/BERT-BiLSTM-CRF/ModelLib.py", line 21, in BERT_MODEL crf_output...