Comments (3)
After some exploration in the file structure I managed to work it out by defining the paths to the files
from IndicTransTokenizer import IndicTransTokenizer
tokenizer = IndicTransTokenizer(direction="en-indic",
src_vocab_fp = "./IndicTransTokenizer/IndicTransTokenizer/en-indic/dict.SRC.json",
tgt_vocab_fp = "./IndicTransTokenizer/IndicTransTokenizer/en-indic/dict.TGT.json",
src_spm_fp="./IndicTransTokenizer/IndicTransTokenizer/en-indic/model.SRC",
tgt_spm_fp="./IndicTransTokenizer/IndicTransTokenizer/en-indic/model.TGT",
)
from indictranstokenizer.
@someshfengde, indic-nlp-library-IT2
is depreciated on pypi
and we don't support it anymore due to similar installation issues. Infact, we removed it as well. Please follow the regular editable installation guide on the repo. Also, you technically shouldn't need to pass paths of spm
and vocab
files, and we also plan to depreciate those arguments later. The code is supposed to read the paths automatically.
from indictranstokenizer.
got it
from indictranstokenizer.
Related Issues (13)
- ValueError when running example
- Token Streaming
- I am getting error importing IndicProcessor HOT 2
- 'sacrebleu' module is not installed by default and has to be done manually
- Getting this error after latest release HOT 4
- Fairseq Tokenizer to HF Tokenizer
- getting error while importing from IndicTransTokenizer import IndicProcessor, IndicTransTokenizer HOT 8
- Issue with editable installation HOT 3
- Create a public python package HOT 1
- ModuleNotFoundError: No module named 'indicnlp' HOT 3
- Indicproessor issue HOT 1
- Unable to import Indicprocessor from IndicTransTokenizer HOT 1
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.
from indictranstokenizer.