0

I have once again had trouble using JWI Wordnet in Android. The only way to access it, is to create a URL or File pointing to the directory where the files it needs are located. http://projects.csail.mit.edu/jwi/api/index.html I have downloaded the files I need, and added the jar into my project. My error is when I try to create the Dictionary object used to access wordnet. I don't point to a valid directory. Which makes sense, but I just don't know how to do so pointing the correct way. Basically, the folder name is "dict", I can place it into either raw or Assets (Although I read something about files in assets needing to be < 1 mb, the files inside the folder are greater than 1 mb) I need to create either a File or URL that points to said folder. How would I go about doing this?

JAL
  • 41,701
  • 23
  • 172
  • 300
DJ-ST
  • 129
  • 10
  • You should of course know full path to the dict folder to begin with. You can put files in assets at design time. Then at run time copy once your files from assets to that dict folder. – greenapps Nov 16 '15 at 08:02

1 Answers1

0

So, you cannot create a file from raw or assets directly, as they are not stored as files, but you can copy/unpack them somewhere else, and make a File object using the copy. Android: how do I create File object from asset file?

Community
  • 1
  • 1
DJ-ST
  • 129
  • 10