fastNLP icon indicating copy to clipboard operation
fastNLP copied to clipboard

fastNLP: A Modularized and Extensible NLP Framework. Currently still in incubation.

Results 71 fastNLP issues
Sort by recently updated
recently updated
newest added

你好,我在代码里发现评估效果这部分的代码封装得比较好,很难调试看到内部的信息是怎么算的,特别是SpanFPreRecMetric中的各项指标的计算,我想知道这个基于span是什么意思,他跟普通的f,pre,rec有什么不一样嘛

**Describe the bug** ModuleNotFoundError: No module named 'fastNLP.core.dataset.dataset'; 'fastNLP.core.dataset' is not a package **To Reproduce** Linux en438191 5.15.0-87-generic #97~20.04.1-Ubuntu SMP Thu Oct 5 08:25:28 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux...

**Describe the bug** ``` from fastHan import FastHan model = FastHan() model.set_cws_style('cityu') model('加载模型报错') ``` 加载模型报错 ``` File "/lib/python3.10/site-packages/fastNLP/core/dataloaders/torch_dataloader/fdl.py", line 152, in __init__ super().__init__(**dl_kwargs) File "/lib/python3.10/site-packages/torch/utils/data/dataloader.py", line 245, in __init__ raise...

Description:简要描述这次PR的内容 vocaburary的from_datasets支持某个instance存在空字符串。会跳过并打印warning信息。增加对应的测试用例 Main reason: 做出这次修改的原因 Checklist 检查下面各项是否完成 Please feel free to remove inapplicable items for your PR. - [ ] The PR title starts with [$CATEGORY] (例如[bugfix]修复bug,[new]添加新功能,[test]修改测试,[rm]删除旧代码) - [ ]...

**Describe the bug** 环境为Anaconda+python3.8, fastNLP版本为1.0.1,可以正常调用其他模块,但无法调用DataSetIter和BatchIter模块。描述如下: File "./stock_energy/aegan.py", line 10, in from fastNLP import DataSet, DataSetIter, RandomSampler, SequentialSampler ImportError: cannot import name 'DataSetIter' from 'fastNLP' (/Users/mac/opt/anaconda3/lib/python3.8/site-packages/fastNLP/__init__.py) Python 3.8.3 (default, Jul 2...

**Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] **Describe the solution you'd...

I've tried a few ways to use tokenizers with DataSet and DataBundle objects but am not successful. Basically, just trying to do this: ```python # Initialize DataSet object `ds` with...

在 fastNLP 版本 1.0.1 中 ``` from fastNLP.embeddings.embedding import TokenEmbedding ``` 报错: ``` ModuleNotFoundError: No module named 'fastNLP.embeddings.embedding' ```