Giter VIP home page Giter VIP logo

Comments (10)

schwepmo avatar schwepmo commented on May 29, 2024

Hey I just tried adding newlines after each of your Entities
and got it to generate the training data. Let me know if this
helped. (I attached the generated training data as a txt-file since
github doesn't accept json-files)
training_dataset_1539100313.txt

from chatito.

jcopps avatar jcopps commented on May 29, 2024

Where is the newline needs to be added?
Example?
And is there a syntax that the rule file missed to follow?

from chatito.

schwepmo avatar schwepmo commented on May 29, 2024

I'm on my phone right now, so this probably won't won't be formatted well.

%[weather] 
    stuff
/newline
@[some_entity]
   more stuff
/newline
~[some_alias]
    even more stuff
/newline

replace the /newline with an extra newline.

I'm not sure if this is the reason, why the script fails. Maybe the documentation offers more insight.

from chatito.

jcopps avatar jcopps commented on May 29, 2024

// Find restaurants by city
%weather
~[greet?] ~[whats?] ~[the?] ~[weather] ~[located at] @[ENTITY_location?] @[ENTITY_temporal?]
~[greet?] ~[ask?] ~[the?] ~[weather] ~[located at] @[ENTITY_location?] @[ENTITY_temporal?]
~[greet?] ~[ask] ~[if_it_is] ~[rain_verb] ~[located at] @[ENTITY_location] ~[city?] @[ENTITY_temporal?]
~[greet?] ~[ask] ~[if_it_is] ~[snow_verb] ~[located at] @[ENTITY_location] ~[city?] @[ENTITY_temporal?]

%weather_future
~[greet?] ~[whats?] ~[the?] ~[weather] ~[forecast] ~[located at] @[ENTITY_location?] @[ENTITY_temporal?]
~[greet?] ~[ask?] ~[the?] ~[weather] ~[forecast] ~[located at] @[ENTITY_location?] @[ENTITY_temporal?]
~[greet?] ~[ask_future] ~[if_it_is] ~[rain_verb] ~[located at] @[ENTITY_location] ~[city?] @[ENTITY_temporal?]
~[greet?] ~[ask_future] ~[if_it_is] ~[snow_verb] ~[located at] @[ENTITY_location] ~[city?] @[ENTITY_temporal?]

@[ENTITY_location]
~[new york]
~[san francisco]
~[atlanta]
~[rome]

@[ENTITY_temporal]
~[tomorrow]
~[now]
~[right now]
~[next week]

~[greet]
hey
hi
hello
greetings

~[located at]
at
in the area of
in
around

~[restaurants]
restaurants
places to eat
where to eat

~[whats]
whats
what is
how is
hows

~[weather]
weather
temperature
climate

~[forecast]
forecast
prediction
estimation

~[ask]
tell me
do you know
can you tell me
find out

~[if_it_is]
if it is
is it

~[ask_future]
can
possible that
how likely is
can

~[rain_noun]
rain
pour
shower

~[rain_verb]
raining
pouring
showering

~[snow_noun]
snow
snow fall

~[snow_verb]
snowing
snow falling

from chatito.

jcopps avatar jcopps commented on May 29, 2024

The system says "Correct syntax" for the above rule data. But I dont get to download the right content.

from chatito.

schwepmo avatar schwepmo commented on May 29, 2024

do you have your intents in brackets (%[weather])?
What does your JSON-file look like? Is it just empty?
Maybe it's a problem with your browser?
You could try installing Chatito via node and run the script locally, this might also give you some error messages

from chatito.

jcopps avatar jcopps commented on May 29, 2024

Its a empty JSON : {}
Containing two brackets.

from chatito.

jcopps avatar jcopps commented on May 29, 2024

I will try that too.

from chatito.

rodrigopivi avatar rodrigopivi commented on May 29, 2024

hi @jcopps,

I tested on chrome, and i get to download two files, the training file, containing 100 examples, and the testing file that is what you describe {}

So my intuition is that maybe you are not aware that you are downloading two files of maybe your browser only gets you the last download, which is the testing dataset.

from chatito.

jcopps avatar jcopps commented on May 29, 2024

Thanks! Got the files now.

from chatito.

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.