acl20-crawling-mailing-lists's People
acl20-crawling-mailing-lists's Issues
Problem with the predict function
Hello, I have been trying to test the code to segment my own email french data, so I needed to call the predict function. I am having some trouble to get the right input format. So I am getting the following error message:
` File "/home/rania/cyg-ds-notebooks/.pyvenv/.email_seg/lib/python3.10/site-packages/keras/engine/training.py", line 2041, in predict_function *
return step_function(self, iterator)
File "/home/rania/cyg-ds-notebooks/.pyvenv/.email_seg/lib/python3.10/site-packages/keras/engine/training.py", line 2027, in step_function **
outputs = model.distribute_strategy.run(run_step, args=(data,))
File "/home/rania/cyg-ds-notebooks/.pyvenv/.email_seg/lib/python3.10/site-packages/keras/engine/training.py", line 2015, in run_step **
outputs = model.predict_step(data)
File "/home/rania/cyg-ds-notebooks/.pyvenv/.email_seg/lib/python3.10/site-packages/keras/engine/training.py", line 1983, in predict_step
return self(x, training=False)
File "/home/rania/cyg-ds-notebooks/.pyvenv/.email_seg/lib/python3.10/site-packages/keras/utils/traceback_utils.py", line 70, in error_handler
raise e.with_traceback(filtered_tb) from None
File "/home/rania/cyg-ds-notebooks/.pyvenv/.email_seg/lib/python3.10/site-packages/keras/engine/input_spec.py", line 216, in assert_input_compatibility
raise ValueError(
ValueError: Layer "model" expects 3 input(s), but it received 1 input tensors. Inputs received: [<tf.Tensor 'IteratorGetNext:0' shape=(None, None, None) dtype=float32>]
`
The test file looks like this:
{"id": 143359, "text": "Nice news. Two comments:\n\n- How difficult it is to add \"Precise\" as target for the build? Precise is\nthe current LTS, so I think it could be usefull to provide recent viking's\npackage for this release.\n\n- As I'm curious, I'm curious to read how you do that ;-)\n\n2013/3/3 Robert Norris <[email protected]>\n\n>\n>\n> >\n> > For Ubuntu users (on the latest release [Raring]) simply issue these\n> commands in a terminal:\n> >\n>\n> Ooops: I mean ^^^^ Quantal release ^^^^^ here.\n>\n>\n> ------------------------------------------------------------------------------\n> Everyone hates slow websites. So do we.\n> Make your web apps faster with AppDynamics\n> Download AppDynamics Lite for free today:\n> http://p.sf.net/sfu/appdyn_d2d_feb\n> _______________________________________________\n> Viking-devel mailing list\n> [email protected]\n> https://lists.sourceforge.net/lists/listinfo/viking-devel\n> Viking home page: http://viking.sf.net/\n>\n\n\n\n-- \nGuilhem BONNEFILLE\n-=- JID: [email protected] MSN: [email protected]\n-=- mailto:[email protected]\n-=- http://nathguil.free.fr/\n\n------------------------------------------------------------------------------\nEveryone hates slow websites. So do we.\nMake your web apps faster with AppDynamics\nDownload AppDynamics Lite for free today:\nhttp://p.sf.net/sfu/appdyn_d2d_feb", "meta": {"id": "19421", "message_id": "<urn:uuid:a454946c-1a83-49a7-9757-bdf5d61bc2f5>", "news_url": "news:CA+BUw6itPgzRJGfJCntvouJUAdLDZPhzGJLr3Fn24B4M8i-hWA@mail.gmail.com", "message_date": "2013-03-04 13:03:50", "filename": "/home/roce3528/cephfs/gmane/archives/news.gmane.org/gmane.comp.gis.viking.devel/000000.warc.gz", "warc_offset": "2734354", "newsgroup": "19421", "name": "gmane.comp.gis.viking.devel"}}
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.