Giter Club home page Giter Club logo

Comments (6)

zhongkaifu avatar zhongkaifu commented on May 27, 2024

Yes. RNNSharp supports it. It's called TFeature (template feature). README file describes how it work and how to use it in details.

from rnnsharp.

My-Khan avatar My-Khan commented on May 27, 2024

Thanks for prompt reply, i read the mentioned source but i am still confused. Actually besides the training data i have a separate text file which contain Countries name stored in text file. so how this separate file can be used as feature along with training data for learning through RNNShrap.
e.g my training file named "mytrain" contains data in following format.
کو PSP NOR
بھارت PNN S_LOCATION
سے PSP NOR
تعلق NN NOR
رکھنے VBI NOR

The gazetteer list name " MyConList"
contains data in the following format.
1: PAKISTAN
2: INDIA
3: CHINA
4: USA

my template file contains the following templates
U01:%x[-1,0]
U02:%x[0,0]

so during training the mention template will generate features from only the training file named "mytrain"
so please guide that how to use the separate file or the gazetteer list named "MyConList" in training of RNN.
Thanks in advance

from rnnsharp.

zhongkaifu avatar zhongkaifu commented on May 27, 2024

You could read [Template Features] section in README file. It has an example about how to use template features. In RNNSharp, template features are binarized by TFatureBin.exe, and then RNNSharp uses it.

from rnnsharp.

My-Khan avatar My-Khan commented on May 27, 2024

apology in advance. still not clear, perhaps i am not explaining my problem well. i have no problem with template feature i can generate it easily by using the TFeatureBin.exe . following are the steps which i follow:
For template feature generation from the following data stored in file named "mytrain.txt" i use TFatureBin.exe build mode.

! PUN S
Tokyo NNP S_LOCATION
and CC S
New NNP B_LOCATION
York NNP E_LOCATION
are VBP S
major JJ S

After executing the Tfeature.exe it generates Two files named tfeature.template and tfeature. right
i mention the output file in config file to be used by RNNShrap e.g TFEATURE_FILENAME:tfeatures.
ok its work well.
in above steps i used only one file named "myTrain.txt" to generate template feature, in case if i have another file or gazetteer named " "myConList.txt" contains data in the following format. then how template feature will be generated from both files using TFeature.exe
1: PAKISTAN
2: INDIA
3: CHINA
4: USA

from rnnsharp.

bratao avatar bratao commented on May 27, 2024

@My-Khan , You need to create a script yourself for injecting this kind of feature in your "mytrain.txt"

from rnnsharp.

My-Khan avatar My-Khan commented on May 27, 2024

@bratao Many thanks for guidance..Hmmmm , now this become nutshell for me. if some body can help?

from rnnsharp.

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.