Git Product home page Git Product logo

Comments (7)

zuchunshan avatar zuchunshan commented on May 19, 2024

我也遇到了类似问题,正在排查原因。
我是在多核CPU上运行的,GPU环境不方便升级到CUDA9.0。

from bert-bilstm-crf-ner.

makotohomula avatar makotohomula commented on May 19, 2024

我遇到了类似问题,清除output里面的输出,重新运行时得到了解决

from bert-bilstm-crf-ner.

newwaylw avatar newwaylw commented on May 19, 2024

我也遇到了nan,并且我的test集人名效果奇差,不知道是哪里的问题 (我并没有改动数据):
INFO:tensorflow:Finished evaluation at 2019-01-17-15:01:59
INFO:tensorflow:Saving dict for global step 19560: eval_f = nan, eval_precision = nan, eval_recall = nan, global_step = 19560, loss = 30.386103
INFO:tensorflow:Saving 'checkpoint_path' summary for global step 19560: /home/wei/BERT-BiLSTM-CRF-NER/output/model.ckpt-19560
INFO:tensorflow:evaluation_loop marked as finished
INFO:tensorflow:***** Predict results *****
INFO:tensorflow: eval_f = nan
INFO:tensorflow: eval_precision = nan
INFO:tensorflow: eval_recall = nan
INFO:tensorflow: global_step = 19560
INFO:tensorflow: loss = 30.386103
INFO:tensorflow:Calling model_fn.
INFO:tensorflow:Running infer on CPU
INFO:tensorflow:*** Features ***
INFO:tensorflow: name = input_ids, shape = (?, 128)
INFO:tensorflow: name = input_mask, shape = (?, 128)
INFO:tensorflow: name = label_ids, shape = (?, 128)
INFO:tensorflow: name = segment_ids, shape = (?, 128)
shape of input_ids (?, 128)
INFO:tensorflow:**** Trainable Variables ****
INFO:tensorflow:Done calling model_fn.
INFO:tensorflow:Graph was finalized.
INFO:tensorflow:Restoring parameters from /home/wei/BERT-BiLSTM-CRF-NER/output/model.ckpt-19560
INFO:tensorflow:Running local_init_op.
INFO:tensorflow:Done running local_init_op.
processed 214542 tokens with 7450 phrases; found: 197725 phrases; correct: 7061.
accuracy: 10.90%; precision: 3.57%; recall: 94.78%; FB1: 6.88
LOC: precision: 95.70%; recall: 95.06%; FB1: 95.38 3441
ORG: precision: 92.09%; recall: 91.37%; FB1: 91.73 2149
PER: precision: 0.93%; recall: 98.30%; FB1: 1.84 192135
有人遇到过吗?

from bert-bilstm-crf-ner.

macanv avatar macanv commented on May 19, 2024

不知道为啥,我使用多种数据运行,都没出现过NON,能给出其他方法的baseline 再来比较么?

from bert-bilstm-crf-ner.

WaNePr avatar WaNePr commented on May 19, 2024

@zuchunshan

我也遇到了类似问题,正在排查原因。
我是在多核CPU上运行的,GPU环境不方便升级到CUDA9.0。

请问你最终解决了这个问题么,测试结果NaN

from bert-bilstm-crf-ner.

WaNePr avatar WaNePr commented on May 19, 2024

@makotohomula

我遇到了类似问题,清除output里面的输出,重新运行时得到了解决

请问你清除了哪些output的文件

from bert-bilstm-crf-ner.

WaNePr avatar WaNePr commented on May 19, 2024

我也遇到了nan,并且我的test集人名效果奇差,不知道是哪里的问题 (我并没有改动数据):
INFO:tensorflow:Finished evaluation at 2019-01-17-15:01:59
INFO:tensorflow:Saving dict for global step 19560: eval_f = nan, eval_precision = nan, eval_recall = nan, global_step = 19560, loss = 30.386103
INFO:tensorflow:Saving 'checkpoint_path' summary for global step 19560: /home/wei/BERT-BiLSTM-CRF-NER/output/model.ckpt-19560
INFO:tensorflow:evaluation_loop marked as finished
INFO:tensorflow:***** Predict results *****
INFO:tensorflow: eval_f = nan
INFO:tensorflow: eval_precision = nan
INFO:tensorflow: eval_recall = nan
INFO:tensorflow: global_step = 19560
INFO:tensorflow: loss = 30.386103
INFO:tensorflow:Calling model_fn.
INFO:tensorflow:Running infer on CPU
INFO:tensorflow:*** Features ***
INFO:tensorflow: name = input_ids, shape = (?, 128)
INFO:tensorflow: name = input_mask, shape = (?, 128)
INFO:tensorflow: name = label_ids, shape = (?, 128)
INFO:tensorflow: name = segment_ids, shape = (?, 128)
shape of input_ids (?, 128)
INFO:tensorflow:**** Trainable Variables ****
INFO:tensorflow:Done calling model_fn.
INFO:tensorflow:Graph was finalized.
INFO:tensorflow:Restoring parameters from /home/wei/BERT-BiLSTM-CRF-NER/output/model.ckpt-19560
INFO:tensorflow:Running local_init_op.
INFO:tensorflow:Done running local_init_op.
processed 214542 tokens with 7450 phrases; found: 197725 phrases; correct: 7061.
accuracy: 10.90%; precision: 3.57%; recall: 94.78%; FB1: 6.88
LOC: precision: 95.70%; recall: 95.06%; FB1: 95.38 3441
ORG: precision: 92.09%; recall: 91.37%; FB1: 91.73 2149
PER: precision: 0.93%; recall: 98.30%; FB1: 1.84 192135
有人遇到过吗?

@newwaylw 请问你解决了这个问题么?

from bert-bilstm-crf-ner.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.