Giter Club home page Giter Club logo

Comments (4)

king-menin avatar king-menin commented on May 20, 2024

Now we add from_config to data and models. (but without examples for now). What do you mean then u say "more generalized model".

What about vocab - :( we release saving labels vocabs in next month. Text vocab is the BERT vocab_file.

from ner-bert.

EricAugust avatar EricAugust commented on May 20, 2024

You know, in some situation, maybe a word predict as location, which actually is person name, or vice versa. So maybe I can keep a vocabulary to save location or person name or organization name.
Also I can use other feature, ex: pos tagging, or other manual defined feature.
After I do that, in the test process, perhaps there are low chances to predict wrong.

from ner-bert.

EricAugust avatar EricAugust commented on May 20, 2024

I have another question, In predict, I need create data, model, learner, then load pre-trained model.
But, after I have trained the model, I don't need to create data, model etc. I only want to loads model, process data, then predict the sequence label.

from ner-bert.

king-menin avatar king-menin commented on May 20, 2024

U are right. Before now we use this code only for experiments. We will add this functions in next month. That about meta (additional) information of words or sentences. U can add your own vector with such info:
data = NerData.create(train_path, valid_path, vocab_file, is_cls=False, is_meta=True)
model = BertBiLSTMAttnCRF.create(len(data.label2idx), bert_config_file, init_checkpoint_pt, meta_dim=30)
meta_dim - is the dimension of your additional information. U can encode POS tags with OneHot (but we know that this is bad). We will add embedder for meta soon.

We do release in next month with new features (meta info, different schemas (BIO, IOX - as in BERT)), easy predict and so on.

from ner-bert.

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.