Code Monkey home page Code Monkey logo

alimajnoon1377 / sentistrength Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 0 B

I have problem whit that this is my code on jupyter notebook: from sentistrength import PySentiStr senti=PySentiStr() senti.setSentiStrengthPath("C:\aaaa\SentiStrength.jar") senti.setSentiStrengthLanguageFolderPath("D:\\9LanguageSetsPoor\\persian\\") r=['امروز هوا سرد اما فوق العاده است','روز بدی است'] result=senti.getSentiment(r , score='scale') print(result) and this is the output: FileNotFoundError Traceback (most recent call last) <ipython-input-10-d2117cf09e09> in <module> 4 senti.setSentiStrengthLanguageFolderPath("D:\\9LanguageSetsPoor\\persian\\") 5 r=['امروز هوا سرد اما فوق العاده است','روز بدی است'] ----> 6 result=senti.getSentiment(r , score='scale') 7 print(result) c:\users\asus\env\lib\site-packages\sentistrength\__init__.py in getSentiment(self, df_text, score) 31 df_text = df_text.str.replace('\r','') 32 conc_text = '\n'.join(df_text) ---> 33 p = subprocess.Popen(shlex.split("java -jar '" + self.SentiStrengthLocation + "' stdin sentidata '" + self.SentiStrengthLanguageFolder + "' trinary"),stdin=subprocess.PIPE,stdout=subprocess.PIPE,stderr=subprocess.PIPE) 34 b = bytes(conc_text.replace(" ","+"), 'utf-8') 35 stdout_byte, stderr_text = p.communicate(b) c:\users\asus\appdata\local\programs\python\python38-32\lib\subprocess.py in __init__(self, args, bufsize, executable, stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd, env, universal_newlines, startupinfo, creationflags, restore_signals, start_new_session, pass_fds, encoding, errors, text) 852 encoding=encoding, errors=errors) 853 --> 854 self._execute_child(args, executable, preexec_fn, close_fds, 855 pass_fds, cwd, env, 856 startupinfo, creationflags, shell, c:\users\asus\appdata\local\programs\python\python38-32\lib\subprocess.py in _execute_child(self, args, executable, preexec_fn, close_fds, pass_fds, cwd, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, unused_restore_signals, unused_start_new_session) 1305 # Start the process 1306 try: -> 1307 hp, ht, pid, tid = _winapi.CreateProcess(executable, args, 1308 # no special security 1309 None, None, FileNotFoundError: [WinError 2] The system cannot find the file specified help me!!!

sentistrength's People

Stargazers

 avatar

Watchers

Ali Majnoon avatar

sentistrength's Issues

Sentistrength.jar

Hello, I'm searching for sentistrength.jar file, but i couldn't find it, can you please say where did you download it from?

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.